From 4ee86e1e4eacc9a83386e750ead8c34b54d96f71 Mon Sep 17 00:00:00 2001 From: GianlucaFuwa Date: Mon, 12 Aug 2024 02:29:18 +0200 Subject: [PATCH] Fix test config file path in tests --- test/test_derivative.jl | 2 +- test/test_fderivative.jl | 2 +- test/test_fermmeas.jl | 2 +- test/test_gflow.jl | 2 +- test/test_meas.jl | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_derivative.jl b/test/test_derivative.jl index df8cdbe..bc9ffef 100644 --- a/test/test_derivative.jl +++ b/test/test_derivative.jl @@ -12,7 +12,7 @@ function test_derivative(backend=CPU) NT = 4 U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0) random_gauges!(U) - # filename = "./test/testconf.txt" + # filename = pkgdir(MetaQCD, "test", "testconf.txt") # load_config!(BridgeFormat(), U, filename); if backend !== CPU U = MetaQCD.to_backend(backend, U) diff --git a/test/test_fderivative.jl b/test/test_fderivative.jl index de9acd7..f452d3c 100644 --- a/test/test_fderivative.jl +++ b/test/test_fderivative.jl @@ -17,7 +17,7 @@ function test_fderivative( U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0) random_gauges!(U) - # filename = "./test/testconf.txt" + # filename = pkgdir(MetaQCD, "test", "testconf.txt") # load_config!(BridgeFormat(), U, filename) if backend !== CPU U = MetaQCD.to_backend(backend, U) diff --git a/test/test_fermmeas.jl b/test/test_fermmeas.jl index e5c009c..097c1e0 100644 --- a/test/test_fermmeas.jl +++ b/test/test_fermmeas.jl @@ -4,7 +4,7 @@ function test_fermion_measurements(backend=CPU) println("SU3testmeas") NX = NY = NZ = NT = 4 U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0) - filename = "./test/testconf.txt" + filename = pkgdir(MetaQCD, "test", "testconf.txt") # random_gauges!(U) load_config!(BridgeFormat(), U, filename) if backend !== CPU diff --git a/test/test_gflow.jl b/test/test_gflow.jl index 6831f30..3b5ee40 100644 --- a/test/test_gflow.jl +++ b/test/test_gflow.jl @@ -6,7 +6,7 @@ function test_gradflow(backend=CPU) NZ = 4 NT = 4 U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0) - filename = "./test/testconf.txt" + filename = pkgdir(MetaQCD, "test", "testconf.txt") load_config!(BridgeFormat(), U, filename) if backend !== CPU U = MetaQCD.to_backend(backend, U) diff --git a/test/test_meas.jl b/test/test_meas.jl index 56a96eb..b60429c 100644 --- a/test/test_meas.jl +++ b/test/test_meas.jl @@ -5,7 +5,7 @@ function test_measurements(backend=CPU) NZ = 4 NT = 4 U = Gaugefield{CPU,Float64,WilsonGaugeAction}(NX, NY, NZ, NT, 6.0) - filename = "./test/testconf.txt" + filename = pkgdir(MetaQCD, "test", "testconf.txt") load_config!(BridgeFormat(), U, filename); if backend !== CPU U = MetaQCD.to_backend(backend, U)