-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stage input data using a fixture, so that it only happens once per se…
…ssion
- Loading branch information
Caspar van Leeuwen
committed
Nov 14, 2024
1 parent
62d84da
commit c5b61ee
Showing
6 changed files
with
2,256 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
eessi/testsuite/tests/apps/cp2k/cp2k_staging/cp2k_stage_input.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import reframe as rfm | ||
from reframe.utility import sanity as sn | ||
|
||
@rfm.simple_test | ||
class EESSI_CP2K_stage_input(rfm.RunOnlyRegressionTest): | ||
'''Stage input files for CP2K''' | ||
|
||
valid_systems = ['*'] | ||
valid_prog_environs = ['*'] | ||
executable = "true" | ||
local = True | ||
|
||
# Check that all files have been staged correctly | ||
input_file_list = [ | ||
'input/QS/H2O-32.inp', | ||
'input/QS/H2O-128.inp', | ||
'input/QS/H2O-512.inp' | ||
] | ||
sn_list = [sn.assert_found('.*', input_file) for input_file in input_file_list] | ||
msg = "input file '%s' seems to be missing" | ||
sanity_patterns = sn.all([ | ||
sn.assert_found('.*', input_file, msg % input_file) for input_file in input_file_list | ||
]) |
Oops, something went wrong.