-
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.
Merge pull request #205 from casparvl/stage_lammps_data_using_fixture
Stage lammps and cp2k data using fixture
- Loading branch information
Showing
9 changed files
with
60 additions
and
9 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
24 changes: 24 additions & 0 deletions
24
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,24 @@ | ||
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 = [ | ||
'QS/H2O-32.inp', | ||
'QS/H2O-128.inp', | ||
'QS/H2O-512.inp', | ||
] | ||
sn_list = [sn.assert_found('.*', input_file) for input_file in input_file_list] | ||
sanity_patterns = sn.all([ | ||
sn.assert_found('.*', input_file, f"input file '{input_file}' seems to be missing") | ||
for input_file in input_file_list | ||
]) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
15 changes: 15 additions & 0 deletions
15
eessi/testsuite/tests/apps/lammps/lammps_staging/lammps_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,15 @@ | ||
import reframe as rfm | ||
from reframe.utility import sanity as sn | ||
|
||
|
||
@rfm.simple_test | ||
class EESSI_LAMMPS_stage_input(rfm.RunOnlyRegressionTest): | ||
'''Stage input files for LAMMPS''' | ||
|
||
valid_systems = ['*'] | ||
valid_prog_environs = ['*'] | ||
executable = "true" | ||
local = True | ||
|
||
# Check that all files have been staged correctly | ||
sanity_patterns = sn.assert_found('.*', 'rhodo/data.rhodo', "input file 'data.rhodo' seems to be missing") |
File renamed without changes.