omega-h: add support for stand-alone testing (#26931)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
parent
4cc2adcbc3
commit
7542d8adc8
@ -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 @@ def flag_handler(self, name, flags):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user