Add nalu-wind test structure (#13640)

- Add custom function to checkout submoudles if testing is enabled
This commit is contained in:
psakievich 2020-08-27 11:09:56 -06:00 committed by GitHub
parent 680c1b339a
commit ccae9cff3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')