Tests written by Ian Bell, NIST, 2018, with the Catch testing framework. This framework allows for only a subset of the tests to be run, for instance you can list the tags that are found:
>main -t
All available tags:
1 [100comps]
1 [100Reloads]
2 [911]
....
49 tags
and then run only a subset of them:
main [REDX] [TCX]
for instance. More information can be obtained by running main -h at the command line.
The tests in this repository are all public domain, while NIST REFPROP is not open source.
All the test runners are contained in docker containers. While it is possible to run the tests standalone without invoking the docker and docker-compose tools, it is not recommended.
Running the tests requires:
dockerdocker-compose
Zip up the FLUIDS, FORTRAN, and MIXTURES folders into a zip file called REFPROP.zip, maybe with something like:
cp -rv /media/R/FLUIDS/ .
cp -rv /media/R/FORTRAN/ .
cp -rv /media/R/MIXTURES/ .
zip -r REFPROP.zip FLUIDS FORTRAN MIXTURES
rm -rf FLUIDS FORTRAN MIXTURESThen copy the REFPROP.zip file into the folder of the test you want to run (e.g. docker/gcov for the gcov coverage tests). At the command line, first make sure you have the REFPROP.zip file, then away we go:
ls REFPROP.zip
docker-compose upIt's the same procedure to run the normal Catch tests (docker/test) or to run the valgrind memory checks for each tag (docker/valgrind).