Skip to content
Snippets Groups Projects
Commit 06b55c28 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

BrainScaleS: Add tests

parent 8cdea723
No related branches found
No related tags found
3 merge requests!253update branch,!252create new experimental release,!244Update BrainScaleS packages and py-torch
...@@ -166,5 +166,15 @@ class Hxtorch(WafPackage): ...@@ -166,5 +166,15 @@ class Hxtorch(WafPackage):
def build_args(self): def build_args(self):
args = ['--keep', '--test-execnone', '-v'] 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 return args
def install_test(self):
with working_dir('spack-test', create=True):
python('-c', 'import hxtorch; print(hxtorch.__file__)')
...@@ -85,3 +85,9 @@ class Oppulance(Package): ...@@ -85,3 +85,9 @@ class Oppulance(Package):
bash('ci/00_build_install_libstdc++.sh') bash('ci/00_build_install_libstdc++.sh')
mkdirp(spec.prefix) mkdirp(spec.prefix)
install_tree('install/.', 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')
...@@ -145,5 +145,15 @@ class PynnBrainscales(WafPackage): ...@@ -145,5 +145,15 @@ class PynnBrainscales(WafPackage):
def build_args(self): def build_args(self):
args = ['--keep', '--test-execnone', '-v'] 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 return args
def install_test(self):
with working_dir('spack-test', create=True):
python('-c', 'import pynn_brainscales; print(pynn_brainscales.__file__)')
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment