summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMiroslav Stoyanov <30537612+mkstoyanov@users.noreply.github.com>2021-10-18 16:09:46 -0400
committerGitHub <noreply@github.com>2021-10-18 16:09:46 -0400
commite0ff44a056146fac647c5ee3d80acda1d32455c1 (patch)
tree84fd83c0c1b4ad86cfababca6c9ce0938274579a /var
parentc48b733773efdb54d582a46e81d934adc8cd4c95 (diff)
downloadspack-e0ff44a056146fac647c5ee3d80acda1d32455c1.tar.gz
spack-e0ff44a056146fac647c5ee3d80acda1d32455c1.tar.bz2
spack-e0ff44a056146fac647c5ee3d80acda1d32455c1.tar.xz
spack-e0ff44a056146fac647c5ee3d80acda1d32455c1.zip
tasmanian: add smoke test (#26763)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/tasmanian/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/tasmanian/package.py b/var/spack/repos/builtin/packages/tasmanian/package.py
index 0fe517f6f2..c17e5cfe7f 100644
--- a/var/spack/repos/builtin/packages/tasmanian/package.py
+++ b/var/spack/repos/builtin/packages/tasmanian/package.py
@@ -64,7 +64,7 @@ class Tasmanian(CMakePackage, CudaPackage, ROCmPackage):
depends_on('cmake@2.8:', type='build')
depends_on('cmake@3.5:', type='build', when='@6.0:')
- depends_on('cmake@3.10:', type='build', when='@7.0:')
+ depends_on('cmake@3.10:', type=('build', 'run'), when='@7.0:')
depends_on('python@2.7:', when='+python', type=('build', 'run'))
depends_on('py-numpy', when='+python', type=('build', 'run'))
@@ -151,3 +151,11 @@ class Tasmanian(CMakePackage, CudaPackage, ROCmPackage):
args.append(self.define_from_variant('Tasmanian_ENABLE_CUBLAS', 'cuda'))
return args
+
+ def test(self):
+ # using the tests installed in <prefix>/share/Tasmanian/testing
+ cmake_dir = join_path(self.prefix, 'share', 'Tasmanian', 'testing')
+ with working_dir(self.install_test_root, create=True):
+ cmake(cmake_dir)
+ make()
+ make('test')