![]() |
ICON Community Interface 0.4.0
|
ComIn provides cmake functions to setup tests with CTest. An example how to use this functions can be found in the User Guide.
This command registers input data for replay tests. The data must be provided as a download-link in a .tar.gz package. The test_data is downloaded in the target download_test_data which is automatically added as a FIXTURES_SETUP test in the test suite.
NAME: name of the data. This name must be passed as REPLAY_DATA argument to comin_add_replay_testURL: download url of the data. Must be a compressed tarball (tar.gz).MD5HASH: MD5 hashsum to verify the downloadComIn provides predefined datasets:
test_nwp_R02B04 (1 processes, 1 domain)test_nwp_R02B04_R02B05_nest (3 processes, 2 domains)This is a wrapper around add_test that adds a test to the project and takes care of the configuration of the comin_replay.
NAME: name of the test (forwarded to add_test)REPLAY_DATA: NAME of the data created with comin_add_replay_data (alternative to REPLAY_DATA_PATH)REPLAY_DATA_PATH: Path of replay data (alternative to REPLAY_DATA)NUM_PROCS: Number of processesREFERENCE_OUTPUT: Path of reference output (optional)Adds a plugin in the comin_nml of a given test. The arguments are forwarded to the comin_nml
TEST: name of the test the plugin should be added toNAME: name of the pluginPLUGIN_LIBRARY: filename of the shared object of the plugin (if any)PRIMARY_CONSTRUCTOR: name of the primary constructor (default: comin_main)OPTIONS: a options string passed to the plugin (default: "")COMM: name of the plugin communicator (defualt: "", meaning no communicator is created for the plugin)Add external process to the test. The processes are appended the mpirun command.
TEST: name of the test the plugin should be added toNUM_PROCS: Number of external processesCOMMAND: command to be executed on the additional processes