Add nalu-wind test structure (#13640)
- Add custom function to checkout submoudles if testing is enabled
This commit is contained in:
parent
680c1b339a
commit
ccae9cff3a
@ -117,4 +117,15 @@ def cmake_args(self):
|
||||
if 'darwin' in spec.architecture:
|
||||
options.append('-DCMAKE_MACOSX_RPATH:BOOL=ON')
|
||||
|
||||
if self.run_tests:
|
||||
options.append('-DENABLE_TESTS:BOOL=ON')
|
||||
else:
|
||||
options.append('-DENABLE_TESTS:BOOL=OFF')
|
||||
|
||||
return options
|
||||
|
||||
@run_before('cmake')
|
||||
def add_submodules(self):
|
||||
if self.run_tests:
|
||||
git = which('git')
|
||||
git('submodule', 'update', '--init', '--recursive')
|
||||
|
Loading…
Reference in New Issue
Block a user