-
Notifications
You must be signed in to change notification settings - Fork 8
Automated Tests
The UCVMC distribution contains a set of test programs and scripts. The UCVMC distribution provides its own automated tests. In addition, the individual models (e.g. CVM-S4, CVM-H, Cencal) have their own test methods. The tests from the individual models are not discussed below. In general, the individual models (e.g. CVM-S4, CVM-H etc) codebases, and their associated tests are installed in the UCVMC installation directory under UCVMC/model/model_name.
After installation, user can set the LD_LIB path, and PYTHON PATH. Once they are established, the users can return to the src home directory and run:
%make check
This runs the ./unittest, ./accepttest, and the accept_test.py which runs the vs30_query, and validate.ssh programs. When these are run, the following tests are performed:
This is a C language test script. It tests for which models are included, but assuming the standard set of models:
- int test_lib_init()
- int test_lib_add_model_1d()
- int test_lib_query_1d()
- int test_lib_get_model_label_1d()
- int test_lib_setparam_querymode_gd_1d()
- int test_lib_setparam_querymode_ge_1d()
- int test_lib_model_version_1d()
- int test_lib_add_model_cencal()
- int test_lib_add_model_cvmh()
- int test_lib_add_model_cvms()
- int test_lib_add_model_cvmsi()
This runs 4 tests which are:
- int test_grid_tool_1d()
- int test_grid_lib_1d()
- int suite_grid(const char *xmldir)
- test_get_time(&suite.exec_time);
This runs two test scripts:
- test_vs30_query
- test_ssh_generate
A binary that generates a small scale heterogenity file and then tests to confirm it matches the reference file.
This wiki is licensed by University of Southern California (USC) to the public under a Creative Commons Attribution 4.0 license.