diff options
author | AcriusWinter <152348900+AcriusWinter@users.noreply.github.com> | 2024-08-15 11:55:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 12:55:16 -0600 |
commit | 10b6d7282ae086a7d03361da205499fd1229977a (patch) | |
tree | ced46ecdd0318bd575f94e61d282a1bcabb54559 | |
parent | 7112a49d1e45e107236da73704478048c715caeb (diff) | |
download | spack-10b6d7282ae086a7d03361da205499fd1229977a.tar.gz spack-10b6d7282ae086a7d03361da205499fd1229977a.tar.bz2 spack-10b6d7282ae086a7d03361da205499fd1229977a.tar.xz spack-10b6d7282ae086a7d03361da205499fd1229977a.zip |
Cache extra test sources update (#45493)
* stand-alone test API update: self.cache_extra_test_sources(...) -> cache_extra_test_sources(self, ...)
* superlu: switch to new cache_extra_test_sources API
---------
Co-authored-by: Tamara Dahlgren <dahlgren1@llnl.gov>
39 files changed, 53 insertions, 50 deletions
diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py index c70a7b1660..a5baeb0cbd 100644 --- a/var/spack/repos/builtin/packages/adios2/package.py +++ b/var/spack/repos/builtin/packages/adios2/package.py @@ -364,7 +364,7 @@ class Adios2(CMakePackage, CudaPackage, ROCmPackage): install test subdirectory for use during `spack test run`. """ extra_install_tests = [join_path("testing", "install", "C")] - self.cache_extra_test_sources(extra_install_tests) + cache_extra_test_sources(self, extra_install_tests) def test_run_executables(self): """Run installed adios2 executables""" diff --git a/var/spack/repos/builtin/packages/aml/package.py b/var/spack/repos/builtin/packages/aml/package.py index 3974d2689a..cdf45388e6 100644 --- a/var/spack/repos/builtin/packages/aml/package.py +++ b/var/spack/repos/builtin/packages/aml/package.py @@ -115,7 +115,7 @@ class Aml(AutotoolsPackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(self.smoke_test_src) + cache_extra_test_sources(self, self.smoke_test_src) def test_check_tutorial(self): """Compile and run the tutorial tests as install checks""" diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py index dee3897fd7..ac79ae0c60 100644 --- a/var/spack/repos/builtin/packages/amrex/package.py +++ b/var/spack/repos/builtin/packages/amrex/package.py @@ -357,7 +357,7 @@ class Amrex(CMakePackage, CudaPackage, ROCmPackage): if self.spec.satisfies("@:21.11"): return - self.cache_extra_test_sources(["Tests"]) + cache_extra_test_sources(self, ["Tests"]) def test_run_install_test(self): """build and run AmrCore test""" diff --git a/var/spack/repos/builtin/packages/arborx/package.py b/var/spack/repos/builtin/packages/arborx/package.py index b49328a32f..6a1ac398bf 100644 --- a/var/spack/repos/builtin/packages/arborx/package.py +++ b/var/spack/repos/builtin/packages/arborx/package.py @@ -129,7 +129,7 @@ class Arborx(CMakePackage, CudaPackage, ROCmPackage): def setup_build_tests(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.examples_src_dir]) + cache_extra_test_sources(self, [self.examples_src_dir]) @property def cached_tests_work_dir(self): diff --git a/var/spack/repos/builtin/packages/archer/package.py b/var/spack/repos/builtin/packages/archer/package.py index d414ce5cdd..87bd4ea79d 100644 --- a/var/spack/repos/builtin/packages/archer/package.py +++ b/var/spack/repos/builtin/packages/archer/package.py @@ -50,7 +50,7 @@ class Archer(CMakePackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(["test"]) + cache_extra_test_sources(self, ["test"]) def test_run_parallel_example(self): """build and run parallel-simple""" diff --git a/var/spack/repos/builtin/packages/biobambam2/package.py b/var/spack/repos/builtin/packages/biobambam2/package.py index 1ea3a3a088..1b5acd3253 100644 --- a/var/spack/repos/builtin/packages/biobambam2/package.py +++ b/var/spack/repos/builtin/packages/biobambam2/package.py @@ -38,7 +38,7 @@ class Biobambam2(AutotoolsPackage): def cache_test_sources(self): """Copy the test source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(self.test_src_dir) + cache_extra_test_sources(self, self.test_src_dir) # Fix test scripts to run installed binaries scripts_dir = join_path(install_test_root(self), self.test_src_dir) diff --git a/var/spack/repos/builtin/packages/bolt/package.py b/var/spack/repos/builtin/packages/bolt/package.py index a5486cb1a7..ab1be415be 100644 --- a/var/spack/repos/builtin/packages/bolt/package.py +++ b/var/spack/repos/builtin/packages/bolt/package.py @@ -56,7 +56,7 @@ class Bolt(CMakePackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(["examples"]) + cache_extra_test_sources(self, ["examples"]) def test_sample_nested_example(self): """build and run sample_nested""" diff --git a/var/spack/repos/builtin/packages/bricks/package.py b/var/spack/repos/builtin/packages/bricks/package.py index 64962089be..d74bebb55a 100644 --- a/var/spack/repos/builtin/packages/bricks/package.py +++ b/var/spack/repos/builtin/packages/bricks/package.py @@ -76,7 +76,7 @@ class Bricks(CMakePackage): join_path("examples", "external", "main.cpp"), join_path("examples", "external", "7pt.py"), ] - self.cache_extra_test_sources(srcs) + cache_extra_test_sources(self, srcs) def test_bricklib_example(self): """build and run pre-built example""" diff --git a/var/spack/repos/builtin/packages/caliper/package.py b/var/spack/repos/builtin/packages/caliper/package.py index af82c89b90..01857c5f33 100644 --- a/var/spack/repos/builtin/packages/caliper/package.py +++ b/var/spack/repos/builtin/packages/caliper/package.py @@ -202,7 +202,7 @@ class Caliper(CMakePackage, CudaPackage, ROCmPackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([join_path("examples", "apps")]) + cache_extra_test_sources(self, [join_path("examples", "apps")]) def test_cxx_example(self): """build and run cxx-example""" diff --git a/var/spack/repos/builtin/packages/darshan-runtime/package.py b/var/spack/repos/builtin/packages/darshan-runtime/package.py index 54d65cf747..9cfa189ab9 100644 --- a/var/spack/repos/builtin/packages/darshan-runtime/package.py +++ b/var/spack/repos/builtin/packages/darshan-runtime/package.py @@ -149,7 +149,7 @@ class DarshanRuntime(AutotoolsPackage): @run_after("install") def _copy_test_inputs(self): test_inputs = [join_path(self.basepath, "mpi-io-test.c")] - self.cache_extra_test_sources(test_inputs) + cache_extra_test_sources(self, test_inputs) def test_mpi_io_test(self): """build, run, and check outputs""" diff --git a/var/spack/repos/builtin/packages/darshan-util/package.py b/var/spack/repos/builtin/packages/darshan-util/package.py index 53899df259..3c6e935360 100644 --- a/var/spack/repos/builtin/packages/darshan-util/package.py +++ b/var/spack/repos/builtin/packages/darshan-util/package.py @@ -113,7 +113,7 @@ class DarshanUtil(AutotoolsPackage): @run_after("install") def _copy_test_inputs(self): test_inputs = [self.tests_log_path] - self.cache_extra_test_sources(test_inputs) + cache_extra_test_sources(self, test_inputs) def test_parser(self): """process example log and check counters""" diff --git a/var/spack/repos/builtin/packages/dssp/package.py b/var/spack/repos/builtin/packages/dssp/package.py index cfd40cc008..bc63e22b6e 100644 --- a/var/spack/repos/builtin/packages/dssp/package.py +++ b/var/spack/repos/builtin/packages/dssp/package.py @@ -53,7 +53,7 @@ class Dssp(AutotoolsPackage): @run_after("install") def cache_test_sources(self): """Save off the pdb sources for stand-alone testing.""" - self.cache_extra_test_sources("pdb") + cache_extra_test_sources(self, "pdb") def test_mkdssp(self): """calculate structure for example""" diff --git a/var/spack/repos/builtin/packages/eigenexa/package.py b/var/spack/repos/builtin/packages/eigenexa/package.py index 44d7b939d8..8eb21e6f37 100644 --- a/var/spack/repos/builtin/packages/eigenexa/package.py +++ b/var/spack/repos/builtin/packages/eigenexa/package.py @@ -74,7 +74,7 @@ class Eigenexa(AutotoolsPackage): @run_after("install") def cache_test_sources(self): """Save off benchmark files for stand-alone tests.""" - self.cache_extra_test_sources("benchmark") + cache_extra_test_sources(self, "benchmark") def test_benchmarks(self): """run benchmark checks""" diff --git a/var/spack/repos/builtin/packages/flibcpp/package.py b/var/spack/repos/builtin/packages/flibcpp/package.py index 7e439a3bce..e13cbf7545 100644 --- a/var/spack/repos/builtin/packages/flibcpp/package.py +++ b/var/spack/repos/builtin/packages/flibcpp/package.py @@ -73,7 +73,7 @@ class Flibcpp(CMakePackage): def setup_smoke_tests(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.examples_src_dir]) + cache_extra_test_sources(self, [self.examples_src_dir]) @property def cached_tests_work_dir(self): diff --git a/var/spack/repos/builtin/packages/formetis/package.py b/var/spack/repos/builtin/packages/formetis/package.py index ce0239f6ef..db2401871a 100644 --- a/var/spack/repos/builtin/packages/formetis/package.py +++ b/var/spack/repos/builtin/packages/formetis/package.py @@ -53,7 +53,7 @@ class Formetis(CMakePackage): def setup_smoke_tests(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.examples_src_dir]) + cache_extra_test_sources(self, [self.examples_src_dir]) @property def cached_tests_work_dir(self): diff --git a/var/spack/repos/builtin/packages/fortrilinos/package.py b/var/spack/repos/builtin/packages/fortrilinos/package.py index 738937cbdf..c1871ab528 100644 --- a/var/spack/repos/builtin/packages/fortrilinos/package.py +++ b/var/spack/repos/builtin/packages/fortrilinos/package.py @@ -96,7 +96,7 @@ class Fortrilinos(CMakePackage): def setup_smoke_tests(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.examples_src_dir]) + cache_extra_test_sources(self, [self.examples_src_dir]) def test_installation(self): """build and run ctest against the installed software""" diff --git a/var/spack/repos/builtin/packages/genesis/package.py b/var/spack/repos/builtin/packages/genesis/package.py index 4ff56e4be1..d12d5c9006 100644 --- a/var/spack/repos/builtin/packages/genesis/package.py +++ b/var/spack/repos/builtin/packages/genesis/package.py @@ -117,4 +117,4 @@ class Genesis(AutotoolsPackage, CudaPackage): def cache_test_sources(self): """Copy test files after the package is installed for test().""" if self.spec.satisfies("@master"): - self.cache_extra_test_sources(["tests"]) + cache_extra_test_sources(self, ["tests"]) diff --git a/var/spack/repos/builtin/packages/ginkgo/package.py b/var/spack/repos/builtin/packages/ginkgo/package.py index 998573ce62..5c132f12e7 100644 --- a/var/spack/repos/builtin/packages/ginkgo/package.py +++ b/var/spack/repos/builtin/packages/ginkgo/package.py @@ -214,7 +214,7 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage): @run_after("install") def cache_test_sources(self): - self.cache_extra_test_sources(self.extra_install_tests) + cache_extra_test_sources(self, self.extra_install_tests) def _cached_tests_src_dir(self, script): """The cached smoke test source directory for the script.""" diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py index 75e1ee3a2f..6fea882e22 100644 --- a/var/spack/repos/builtin/packages/hdf/package.py +++ b/var/spack/repos/builtin/packages/hdf/package.py @@ -218,7 +218,7 @@ class Hdf(AutotoolsPackage): def setup_build_tests(self): """Copy the build test files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(self.extra_install_tests) + cache_extra_test_sources(self, self.extra_install_tests) def _check_version_match(self, exe): """Ensure exe version check yields spec version.""" diff --git a/var/spack/repos/builtin/packages/hip/package.py b/var/spack/repos/builtin/packages/hip/package.py index 413984b199..6cc74196ac 100644 --- a/var/spack/repos/builtin/packages/hip/package.py +++ b/var/spack/repos/builtin/packages/hip/package.py @@ -594,9 +594,9 @@ class Hip(CMakePackage): """Copy the tests source files after the package is installed to an install test subdirectory for use during `spack test run`.""" if self.spec.satisfies("@5.1:5.5"): - self.cache_extra_test_sources([self.test_src_dir_old]) + cache_extra_test_sources(self, [self.test_src_dir_old]) elif self.spec.satisfies("@5.6:"): - self.cache_extra_test_sources([self.test_src_dir]) + cache_extra_test_sources(self, [self.test_src_dir]) def test_samples(self): # configure, build and run all hip samples diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py index 810e9527bc..3267815c13 100644 --- a/var/spack/repos/builtin/packages/kokkos/package.py +++ b/var/spack/repos/builtin/packages/kokkos/package.py @@ -395,7 +395,7 @@ class Kokkos(CMakePackage, CudaPackage, ROCmPackage): "-DSPACK_PACKAGE_INSTALL_DIR:PATH={0}".format(self.prefix), ] cmake(*cmake_args) - self.cache_extra_test_sources(cmake_out_path) + cache_extra_test_sources(self, cmake_out_path) def test_run(self): """Test if kokkos builds and runs""" diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py index 0663518d2e..fbbbcf9a7f 100644 --- a/var/spack/repos/builtin/packages/legion/package.py +++ b/var/spack/repos/builtin/packages/legion/package.py @@ -495,7 +495,7 @@ class Legion(CMakePackage, ROCmPackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([join_path("examples", "local_function_tasks")]) + cache_extra_test_sources(self, [join_path("examples", "local_function_tasks")]) def test_run_local_function_tasks(self): """Build and run external application example""" diff --git a/var/spack/repos/builtin/packages/libsigsegv/package.py b/var/spack/repos/builtin/packages/libsigsegv/package.py index 253ab41b79..66e78612fe 100644 --- a/var/spack/repos/builtin/packages/libsigsegv/package.py +++ b/var/spack/repos/builtin/packages/libsigsegv/package.py @@ -36,7 +36,7 @@ class Libsigsegv(AutotoolsPackage, GNUMirrorPackage): def setup_tests(self): """Copy the build test files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(self.extra_install_tests) + cache_extra_test_sources(self, self.extra_install_tests) def test_smoke_test(self): """build and run smoke test""" diff --git a/var/spack/repos/builtin/packages/mfem/package.py b/var/spack/repos/builtin/packages/mfem/package.py index 05c59675b6..53ec9e54de 100644 --- a/var/spack/repos/builtin/packages/mfem/package.py +++ b/var/spack/repos/builtin/packages/mfem/package.py @@ -1223,7 +1223,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): # Clean the 'examples' directory -- at least one example is always built # and we do not want to cache executables. make("examples/clean", parallel=False) - self.cache_extra_test_sources([self.examples_src_dir, self.examples_data_dir]) + cache_extra_test_sources(self, [self.examples_src_dir, self.examples_data_dir]) def test_ex10(self): """build and run ex10(p)""" diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py index 5711ed72ff..60554b53d0 100644 --- a/var/spack/repos/builtin/packages/mpich/package.py +++ b/var/spack/repos/builtin/packages/mpich/package.py @@ -649,7 +649,7 @@ supported, and netmod is ignored if device is ch3:sock.""", def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(["examples", join_path("test", "mpi")]) + cache_extra_test_sources(self, ["examples", join_path("test", "mpi")]) def mpi_launcher(self): """Determine the appropriate launcher.""" diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 5b2fb93783..22bc36c360 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -1298,7 +1298,7 @@ class Openmpi(AutotoolsPackage, CudaPackage): Copy the example files after the package is installed to an install test subdirectory for use during `spack test run`. """ - self.cache_extra_test_sources(self.extra_install_tests) + cache_extra_test_sources(self, self.extra_install_tests) def run_installed_binary(self, bin, options, expected): """run and check outputs for the installed binary""" diff --git a/var/spack/repos/builtin/packages/papi/package.py b/var/spack/repos/builtin/packages/papi/package.py index 7fb31bc920..b1c869f7ba 100644 --- a/var/spack/repos/builtin/packages/papi/package.py +++ b/var/spack/repos/builtin/packages/papi/package.py @@ -209,7 +209,7 @@ class Papi(AutotoolsPackage, ROCmPackage): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" if os.path.exists(self.test_src_dir): - self.cache_extra_test_sources([self.test_src_dir]) + cache_extra_test_sources(self, [self.test_src_dir]) def test_smoke(self): """Compile and run simple code against the installed papi library.""" diff --git a/var/spack/repos/builtin/packages/papyrus/package.py b/var/spack/repos/builtin/packages/papyrus/package.py index 76703751c4..166dbee53f 100644 --- a/var/spack/repos/builtin/packages/papyrus/package.py +++ b/var/spack/repos/builtin/packages/papyrus/package.py @@ -42,7 +42,7 @@ class Papyrus(CMakePackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(join_path("kv", "tests")) + cache_extra_test_sources(self, join_path("kv", "tests")) @property def _lib_dir(self): diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 59a265649f..32a40ce281 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -697,8 +697,9 @@ class Petsc(Package, CudaPackage, ROCmPackage): tty.warn("Stand-alone tests only available for v3.13:") return - self.cache_extra_test_sources( - [join_path("src", "ksp", "ksp", "tutorials"), join_path("src", "snes", "tutorials")] + cache_extra_test_sources( + self, + [join_path("src", "ksp", "ksp", "tutorials"), join_path("src", "snes", "tutorials")], ) def get_runner(self): diff --git a/var/spack/repos/builtin/packages/py-chainer/package.py b/var/spack/repos/builtin/packages/py-chainer/package.py index 77167c0b36..538a5604f7 100644 --- a/var/spack/repos/builtin/packages/py-chainer/package.py +++ b/var/spack/repos/builtin/packages/py-chainer/package.py @@ -52,7 +52,7 @@ class PyChainer(PythonPackage): @run_after("install") def cache_test_sources(self): if "+mn" in self.spec: - self.cache_extra_test_sources("examples") + cache_extra_test_sources(self, "examples") def test_chainermn(self): """run the ChainerMN test""" diff --git a/var/spack/repos/builtin/packages/py-libensemble/package.py b/var/spack/repos/builtin/packages/py-libensemble/package.py index 5f16432252..b80d1d692f 100644 --- a/var/spack/repos/builtin/packages/py-libensemble/package.py +++ b/var/spack/repos/builtin/packages/py-libensemble/package.py @@ -92,7 +92,9 @@ class PyLibensemble(PythonPackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(join_path("examples", "calling_scripts", "regression_tests")) + cache_extra_test_sources( + self, join_path("examples", "calling_scripts", "regression_tests") + ) def run_tutorial_script(self, script): """run the tutorial example regression test""" diff --git a/var/spack/repos/builtin/packages/qthreads/package.py b/var/spack/repos/builtin/packages/qthreads/package.py index 51f83c2b8f..d840c19ffd 100644 --- a/var/spack/repos/builtin/packages/qthreads/package.py +++ b/var/spack/repos/builtin/packages/qthreads/package.py @@ -114,7 +114,7 @@ class Qthreads(AutotoolsPackage): def setup_build_tests(self): """Copy the build test files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([join_path("test", "argparsing.h"), self.test_base_path]) + cache_extra_test_sources(self, [join_path("test", "argparsing.h"), self.test_base_path]) def _build_and_run_test(self, test): """Build and run the test.""" diff --git a/var/spack/repos/builtin/packages/rocm-clang-ocl/package.py b/var/spack/repos/builtin/packages/rocm-clang-ocl/package.py index 4197bf2289..6c23a9e084 100644 --- a/var/spack/repos/builtin/packages/rocm-clang-ocl/package.py +++ b/var/spack/repos/builtin/packages/rocm-clang-ocl/package.py @@ -83,7 +83,7 @@ class RocmClangOcl(CMakePackage): def cache_test_sources(self): """Copy the tests source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.test_src_dir]) + cache_extra_test_sources(self, [self.test_src_dir]) def test_make(self): """Test make""" diff --git a/var/spack/repos/builtin/packages/rocm-cmake/package.py b/var/spack/repos/builtin/packages/rocm-cmake/package.py index 21cab81467..3be1f426ba 100644 --- a/var/spack/repos/builtin/packages/rocm-cmake/package.py +++ b/var/spack/repos/builtin/packages/rocm-cmake/package.py @@ -63,7 +63,7 @@ class RocmCmake(CMakePackage): def cache_test_sources(self): """Copy the tests source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.test_src_dir]) + cache_extra_test_sources(self, [self.test_src_dir]) def test_cmake(self): """Test cmake""" diff --git a/var/spack/repos/builtin/packages/slate/package.py b/var/spack/repos/builtin/packages/slate/package.py index aa303ed17d..9a89c50bcc 100644 --- a/var/spack/repos/builtin/packages/slate/package.py +++ b/var/spack/repos/builtin/packages/slate/package.py @@ -158,7 +158,7 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage): return """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(["examples"]) + cache_extra_test_sources(self, ["examples"]) def mpi_launcher(self): searchpath = [self.spec["mpi"].prefix.bin] diff --git a/var/spack/repos/builtin/packages/strumpack/package.py b/var/spack/repos/builtin/packages/strumpack/package.py index 5f72996151..cb1428dcff 100644 --- a/var/spack/repos/builtin/packages/strumpack/package.py +++ b/var/spack/repos/builtin/packages/strumpack/package.py @@ -208,7 +208,7 @@ class Strumpack(CMakePackage, CudaPackage, ROCmPackage): def cache_test_sources(self): """Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.test_data_dir, self.test_src_dir]) + cache_extra_test_sources(self, [self.test_data_dir, self.test_src_dir]) def _test_example(self, test_prog, test_cmd, pre_args=[]): test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir) diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py index 1a2809eb0d..1440da388a 100644 --- a/var/spack/repos/builtin/packages/superlu-dist/package.py +++ b/var/spack/repos/builtin/packages/superlu-dist/package.py @@ -169,7 +169,7 @@ class SuperluDist(CMakePackage, CudaPackage, ROCmPackage): def cache_test_sources(self): """Copy the example matrices after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources([self.examples_src_dir]) + cache_extra_test_sources(self, [self.examples_src_dir]) def test_pddrive(self): """run cached pddrive""" diff --git a/var/spack/repos/builtin/packages/superlu/package.py b/var/spack/repos/builtin/packages/superlu/package.py index 5528378c80..6a62ae9e17 100644 --- a/var/spack/repos/builtin/packages/superlu/package.py +++ b/var/spack/repos/builtin/packages/superlu/package.py @@ -116,7 +116,7 @@ class BaseBuilder(metaclass=spack.builder.PhaseCallbacksMeta): filter_file(r"include \.\./" + filename, "include ./" + filename, makefile) # Cache the examples directory for use by stand-alone tests - self.pkg.cache_extra_test_sources(self.pkg.examples_src_dir) + cache_extra_test_sources(self.pkg, self.pkg.examples_src_dir) def _make_hdr_for_test(self, lib): """Standard configure arguments for make.inc""" diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index ed3aaafe40..4b944cc027 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -462,23 +462,23 @@ class Tau(Package): def setup_build_tests(self): """Copy the build test files after the package is installed to an install test subdirectory for use during `spack test run`.""" - self.cache_extra_test_sources(self.matmult_test) - self.cache_extra_test_sources(self.makefile_test) - self.cache_extra_test_sources(self.makefile_inc_test) + cache_extra_test_sources(self, self.matmult_test) + cache_extra_test_sources(self, self.makefile_test) + cache_extra_test_sources(self, self.makefile_inc_test) if "+dyninst" in self.spec: - self.cache_extra_test_sources(self.dyninst_test) + cache_extra_test_sources(self, self.dyninst_test) if "+cuda" in self.spec: - self.cache_extra_test_sources(self.cuda_test) + cache_extra_test_sources(self, self.cuda_test) if "+level_zero" in self.spec: - self.cache_extra_test_sources(self.level_zero_test) + cache_extra_test_sources(self, self.level_zero_test) if "+rocm" in self.spec: - self.cache_extra_test_sources(self.rocm_test) + cache_extra_test_sources(self, self.rocm_test) if "+syscall" in self.spec: - self.cache_extra_test_sources(self.syscall_test) + cache_extra_test_sources(self, self.syscall_test) if "+ompt" in self.spec: - self.cache_extra_test_sources(self.ompt_test) + cache_extra_test_sources(self, self.ompt_test) if "+python" in self.spec: - self.cache_extra_test_sources(self.python_test) + cache_extra_test_sources(self, self.python_test) def _run_python_test(self, test_name, purpose, work_dir): tau_python = which(self.prefix.bin.tau_python) |