This script is used to setup individual test cases. Available test cases can be see using the :ref:`compass_list_testcases` script.
Specifically, this script parses XML files that define cases (steps in test cases) and driver scripts, and generates directories and scripts to run each step in the process of creating a test case.
This script requires a setup configuration file. Configuration files are
specific to each core. Template configuration files for each core can be seen
in this directory named general.config.{core} (see :ref:`compass_config`).
Each core may have different requirements as far as what is required within a
configuration file.
Command-line options:
$ ./setup_testcase.py -h
usage: setup_testcase.py [-h] [-o CORE] [-c CONFIG] [-r RES] [-t TEST]
[-n NUM] [-f FILE] [-m FILE] [-b PATH] [-q]
[--no_download] [--work_dir PATH]
This script is used to setup individual test cases. Available test cases
can be see using the list_testcases.py script.
Specifically, this script parses XML files that define cases (steps in test
cases) and driver scripts, and generates directories and scripts to run each
step in the process of creating a test case.
This script requires a setup configuration file. Configuration files are
specific to each core. Template configuration files for each core can be seen
in this directory named 'general.config.{core}'. Each core may have different
requirements as far as what is required within a configuration file.
optional arguments:
-h, --help show this help message and exit
-o CORE, --core CORE Core that contains configurations
-c CONFIG, --configuration CONFIG
Configuration to setup
-r RES, --resolution RES
Resolution of configuration to setup
-t TEST, --test TEST Test name within a resolution to setup
-n NUM, --case_number NUM
Case number to setup, as listed from list_testcases.py. Can be a comma delimited list of case numbers.
-f FILE, --config_file FILE
Configuration file for test case setup
-m FILE, --model_runtime FILE
Definition of how to build model run commands on this machine
-b PATH, --baseline_dir PATH
Location of baseslines that can be compared to
-q, --quiet If set, script will not write a command_history file
--no_download If set, script will not auto-download base_mesh files
--work_dir PATH If set, script will create case directories in work_dir rather than the current directory.