Skip to content

usnistgov/REFPROP-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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.

License

The tests in this repository are all public domain, while NIST REFPROP is not open source.

Running tests

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:

  • docker
  • docker-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 MIXTURES

Then 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 up

It's the same procedure to run the normal Catch tests (docker/test) or to run the valgrind memory checks for each tag (docker/valgrind).

About

Catch-based C++ tests of REFPROP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.4%
  • Python 4.1%
  • Dockerfile 1.2%
  • CMake 0.3%