From 7542d8adc8aafd6636ad0b017e57608f86417a93 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Thu, 4 Nov 2021 15:02:02 -0400 Subject: omega-h: add support for stand-alone testing (#26931) Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> --- .../repos/builtin/packages/omega-h/package.py | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'var') 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) -- cgit v1.2.3-60-g2f50