The script will be executed in the following way:
./new_test.sh test_01.
The script should create the required files:
- The test_01.cxx file which contains the same content as example_test.cxx
- The default configuration config_test_01_default.txt associated to the new test as config_example_test_default.txt
The script should setup base code in run.cxx:
- Include the new test after the existing includes:
#include "toto.cxx"
- Add "test_01" to the variable all_tests in the main:
all_tests = {..., "test_01"};
- Complete the run_test function as follows:
else if (test_name == "test_01") test_01(cfg, test_name).run();
In test_data.py, declare the new test:
methods = { ..., 'test_01' : Method(test_config) }