diff --git a/packages/hxtorch/package.py b/packages/hxtorch/package.py index 240e09ee79631d84463b0b472a3a8bc513dc2dbf..efd1b7299af2d42c8f94bb869e614465582c6907 100644 --- a/packages/hxtorch/package.py +++ b/packages/hxtorch/package.py @@ -166,5 +166,15 @@ class Hxtorch(WafPackage): def build_args(self): args = ['--keep', '--test-execnone', '-v'] + return args + + def build_test(self): + self.waf('install', '--test-execall') + def install_args(self): + args = ['--test-execnone'] return args + + def install_test(self): + with working_dir('spack-test', create=True): + python('-c', 'import hxtorch; print(hxtorch.__file__)') diff --git a/packages/oppulance/package.py b/packages/oppulance/package.py index 09e39753ed757597c86b2f3370d8ab0bc8a3deaf..697e3e794afbb2036f01814c65050ba4eed866a0 100644 --- a/packages/oppulance/package.py +++ b/packages/oppulance/package.py @@ -85,3 +85,9 @@ class Oppulance(Package): bash('ci/00_build_install_libstdc++.sh') mkdirp(spec.prefix) install_tree('install/.', spec.prefix) + + @run_after('install') + @on_package_attributes(run_tests=True) + def check_install(self): + ppu_gcc = which('powerpc-ppu-gcc') + ppu_gcc('--version') diff --git a/packages/pynn-brainscales/package.py b/packages/pynn-brainscales/package.py index d90a7e37c49fcd672bb0797d4237215efa153d6a..49bb2e5909c6a6b21e3496c9423048e6b036fbdd 100644 --- a/packages/pynn-brainscales/package.py +++ b/packages/pynn-brainscales/package.py @@ -145,5 +145,15 @@ class PynnBrainscales(WafPackage): def build_args(self): args = ['--keep', '--test-execnone', '-v'] + return args + + def build_test(self): + self.waf('install', '--test-execall') + def install_args(self): + args = ['--test-execnone'] return args + + def install_test(self): + with working_dir('spack-test', create=True): + python('-c', 'import pynn_brainscales; print(pynn_brainscales.__file__)')