GprMaxBaseTest
- class reframe_tests.tests.base_tests.GprMaxBaseTest(*args, **kwargs)
Base class that all GprMax tests should inherit from.
Test functionality can be augmented by using Mixin classes.
- model
ReFrame parameter to specify the model name(s).
- Type
parameter[str]
- sourcesdir
Relative path to the test’s src directory.
- Type
str
- regression_checks
List of regression checks to perform.
- Type
list[RegressionCheck]
- test_dependency
Optional test dependency. If specified, regression checks will use reference files created by the test dependency.
- Type
type[GprMaxBaseTest] | None
- __init__()
Methods
__init__()build_output_file_path(filename)Build output file Path object from filename.
build_reference_filepath(name[, suffix])Build path to the specified reference file.
check_performance()The performance checking phase of the regression test pipeline.
check_sanity()The sanity checking phase of the regression test pipeline.
cleanup([remove_files])The cleanup phase of the regression test pipeline.
combine_task_outputs()Split output from each MPI rank.
compile()The compilation phase of the regression test pipeline.
compile_complete()Check if the build phase has completed.
compile_wait()Wait for compilation phase to finish.
configure_test_run()Configure gprMax commandline arguments and files to keep.
depends_on(target[, how])Add a dependency to another test.
disable_hook(hook_name)Disable pipeline hook by name.
extract_average_memory_use()Extract average memory use for each rank.
extract_memory_use_per_rank()Extract gprMax report of the estimated memory use per rank.
extract_run_time()Extract total runtime from SLURM.
extract_simulation_time()Extract average simulation time reported by gprMax.
extract_simulation_time_per_rank()Extract simulation time reported by gprMax from each rank.
extract_total_memory_use()Extract total memory use across all ranks.
get_pyenv_path(CreatePyenvTest)Add prerun command to load the built Python environment.
get_test_dependency()Get correct ReFrame test case from the test dependency.
get_test_dependency_variant_name(**kwargs)Get unique ReFrame name of the test dependency variant.
getdep(target[, environ, part])Retrieve the test case of a target dependency.
info()Provide live information for this test.
inject_dependencies()Specify test dependencies.
is_dry_run()Check if the test runs in dry-run mode.
is_fixture()Check if the test is a fixture.
is_local()Check if the test will execute locally.
is_performance_check()Return
Trueif the test is a performance test.performance()pipeline_hooks()regression_check()Run sanity checks and regression checks.
run()The run phase of the regression test pipeline.
run_complete()Check if the run phase has completed.
run_wait()Wait for the run phase of this test to finish.
sanity()set_file_paths()Set default test input and output files.
set_var_default(name, value)Set the default value of a variable if variable is undefined.
setup(partition, environ, **job_opts)The setup stage of the regression test pipeline.
setup_env_vars()Set necessary environment variables.
skip([msg])Skip test.
skip_if(cond[, msg])Skip test if condition is true.
skip_if_no_procinfo([msg])Skip test if no processor topology information is available.
test_reference_files_exist()Check all reference files exist and create any missing ones.
test_simulation_complete()Check simulation completed successfully.
user_deps()Attributes
build_jobbuild_stderrbuild_stdoutcurrent_environThe programming environment that the regression test is currently executing with.
current_partitionThe system partition the regression test is currently executing on.
current_systemThe system the regression test is currently executing on.
disabled_hooksdisplay_nameA human-readable version of the name this test.
fixture_variantThe point in the fixture space for the test.
hashcodejobThe job descriptor associated with this test.
loggerA logger associated with this test.
nameThe name of the test.
outputdirThe output directory of the test.
param_variantThe point in the parameter space for the test.
perfvaluesThe obtained performance values for this test.
prefixThe prefix directory of the test.
short_nameA short version of the test's display name.
stagedirThe stage directory of the test.
stderrThe name of the file containing the standard error of the test.
stdoutThe name of the file containing the standard output of the test.
unique_nameThe unique name of this test.
variant_numThe variant number of the test.
valid_prog_environsList of programming environments supported by this test.
valid_systemsList of systems or system features or system properties required by this test.
descrA detailed description of the test.
sourcepathThe path to the source file or source directory of the test.
The directory containing the test's resources.
build_systemNew in version 2.14.
prebuild_cmdsNew in version 3.0.
postbuild_cmdsNew in version 3.0.
executableThe name of the executable to be launched during the run phase.
executable_optsList of options to be passed to the
executable.container_platformNew in version 2.20.
prerun_cmdsNew in version 3.0.
postrun_cmdsNew in version 3.0.
keep_filesList of files to be kept after the test finishes.
readonly_filesList of files or directories (relative to the
sourcesdir) that will be symlinked in the stage directory and not copied.tagsSet of tags associated with this test.
maintainersList of people responsible for this test.
strict_checkMark this test as a strict performance test.
num_tasksNumber of tasks required by this test.
num_tasks_per_nodeNumber of tasks per node required by this test.
num_gpus_per_nodeNumber of GPUs per node required by this test.
num_cpus_per_taskNumber of CPUs per task required by this test.
num_tasks_per_coreNumber of tasks per core required by this test.
num_tasks_per_socketNumber of tasks per socket required by this test.
use_multithreadingSpecify whether this tests needs simultaneous multithreading enabled.
max_pending_timeNew in version 3.0.
exclusive_accessSpecify whether this test needs exclusive access to nodes.
localAlways execute this test locally.
referenceThe performance reference values for this test.
require_referenceRequire that a reference is defined for each system that this test is run on.
sanity_patternsPatterns for checking the sanity of this test.
perf_patternsPatterns for verifying the performance of this test.
perf_variablesThe performance variables associated with the test.
modulesList of modules to be loaded before running this test.
env_varsEnvironment variables to be set before running this test.
variablesEnvironment variables to be set before running this test.
time_limitTime limit for this test.
build_time_limitNew in version 3.5.1.
extra_resourcesNew in version 2.8.
build_locallyNew in version 3.3.
ci_extrasNew in version 4.2.