using ITensorGPU, Test, CUDA

CUDA.allowscalar(false)
@testset "ITensorGPU.jl" begin
  #@testset "$filename" for filename in ("test_cucontract.jl",)
  #  println("Running $filename with autotune")
  #  cmd = `$(Base.julia_cmd()) -e 'using Pkg; Pkg.activate(".."); Pkg.instantiate(); include("test_cucontract.jl")'`
  #  run(pipeline(setenv(cmd, "CUTENSOR_AUTOTUNE" => 1); stdout=stdout, stderr=stderr))
  #end
  @testset "$filename" for filename in (
    "dmrg.jl",
    "test_cuitensor.jl",
    "test_cudiag.jl",
    "test_cudense.jl",
    "test_cucontract.jl",
    "test_cumpo.jl",
    "test_cumps.jl",
    "test_cuiterativesolvers.jl",
    "test_cutruncate.jl",
  )
    println("Running $filename")
    include(filename)
  end
end
