|
1 week ago | |
---|---|---|
ES085A | 1 week ago | |
jive-toolchain-verify @ e09d4c3be0 | 2 weeks ago | |
python | 2 weeks ago | |
.gitignore | 3 weeks ago | |
.gitmodules | 1 week ago | |
.run_main_from_here | 3 weeks ago | |
README.md | 2 weeks ago | |
main | 2 weeks ago |
Provide regression test(s) for j2ms2 / tConvert that can be run in (semi)automated fashion. The programs translate JIVE software correlator (SFXC) output into CASA MeasurementSet and FITS-IDI format.
The goal of this testsuite is to verify that changes in the source code do not alter the data and meta data content unexpectedly by running the toolchain-under-test on data with known properties.
The test suite tests the following:
The test cleans up after itself if all tests have passed without errors. Otherwise all artefacts (produced data sets and log files) will be left and a message is printed containing the location of the artefacts.
The regression test suite depends on the following other tools:
python
(2 or 3) w/ modules:
unittest
python-casacore
jplotter
(this tool also requires python-casacore
)git
- to automatically download the jive-toolchain-verify
MeasurementSet/FITS-IDI comparison toolsj2ms2 and tConvert come in a pair, typically built or installed from the same source distribution. The framework uses Python unittest
to execute. However, due to the fact that python -m unittest discover
does not allow passing of any arguments to subsequent tests, a workaround was introduced.
$> cd /path/to/checked-out-jive-toolchain-regression
$> ./main [options]
You can run ./main -h
for help on [options]
Pass any/all of the following options to main
to set the path to the desired version to use:
--python PATH Path to the Python interpreter to use
--jplotter PATH Path to the jplotter program to use
The (optional) parameter to pass is which j2ms2/tConvert to test. By default the program looks in your $PATH
environment for j2ms2
and tConvert
and uses those.
Since the toolchain moved to using CMake, the binaries can be in slightly different locations, depending on whether the freshly built binaries or the installed binaries are desired.
The test code supports the following (mutually exclusive) command line options:
--cmake-build-dir DIR use binaries DIR/app/{j2ms2,tConvert}/{j2ms2,tConvert}
--cmake-install-dir DIR use binaries DIR/bin/{j2ms2,tConvert}