diff options
author | Cameron Smith <cwsmith@users.noreply.github.com> | 2021-11-04 15:02:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 12:02:02 -0700 |
commit | 7542d8adc8aafd6636ad0b017e57608f86417a93 (patch) | |
tree | 2934918d39b7b7e365f371e469a97910139782bc /var | |
parent | 4cc2adcbc30a1b76c90b084e251b96fb0a317fe6 (diff) | |
download | spack-7542d8adc8aafd6636ad0b017e57608f86417a93.tar.gz spack-7542d8adc8aafd6636ad0b017e57608f86417a93.tar.bz2 spack-7542d8adc8aafd6636ad0b017e57608f86417a93.tar.xz spack-7542d8adc8aafd6636ad0b017e57608f86417a93.zip |
omega-h: add support for stand-alone testing (#26931)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/omega-h/package.py | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/omega-h/package.py b/var/spack/repos/builtin/packages/omega-h/package.py index 81c1f6e221..b94aad8e9a 100644 --- a/var/spack/repos/builtin/packages/omega-h/package.py +++ b/var/spack/repos/builtin/packages/omega-h/package.py @@ -11,11 +11,11 @@ class OmegaH(CMakePackage): hardware including GPUs. """ - homepage = "https://github.com/SNLComputation/omega_h" - url = "https://github.com/SNLComputation/omega_h/archive/v9.34.1.tar.gz" - git = "https://github.com/SNLComputation/omega_h.git" + homepage = "https://github.com/sandialabs/omega_h" + url = "https://github.com/sandialabs/omega_h/archive/v9.34.1.tar.gz" + git = "https://github.com/sandialabs/omega_h.git" - maintainers = ['ibaned'] + maintainers = ['cwsmith'] tags = ['e4s'] version('main', branch='main') version('9.34.1', sha256='3a812da3b8df3e0e5d78055e91ad23333761bcd9ed9b2c8c13ee1ba3d702e46c') @@ -99,3 +99,24 @@ class OmegaH(CMakePackage): flags.append("-Wno-final-dtor-non-final-class") return (None, None, flags) + + def test(self): + if self.spec.version < Version('9.34.1'): + print('Skipping tests since only relevant for versions > 9.34.1') + return + + exe = join_path(self.prefix.bin, 'osh_box') + options = ['1', '1', '1', '2', '2', '2', 'box.osh'] + description = 'testing mesh construction' + self.run_test(exe, options, purpose=description) + + exe = join_path(self.prefix.bin, 'osh_scale') + options = ['box.osh', '100', 'box_100.osh'] + expected = 'adapting took' + description = 'testing mesh adaptation' + self.run_test(exe, options, expected, purpose=description) + + exe = join_path(self.prefix.bin, 'osh2vtk') + options = ['box_100.osh', 'box_100_vtk'] + description = 'testing mesh to vtu conversion' + self.run_test(exe, options, purpose=description) |