The continuous integration testsuite for OpenTOPAS
Testing is performed using nrtest and the OpenTOPAS-specific plugins contained in nrtest-topas. These are both Python packages, so you need a Python installation to run the testsuite. If working on a Mac, I recommend installing Python with Homebrew to avoid messing up your system Python.
-
Once you have Python, you can install the packages using pip:
pip3 install nrtest pip3 install git+https://github.com/davidchall/nrtest-topas.git
-
Now download the tests themselves:
git clone https://github.com/OpenTOPAS/qi-opentopas.git cd qi-opentopas
- Create a metadata file for your local OpenTOPAS installation in the
apps
directory (look here for an example).
Note
The above example assumes that environment variables are specified within the executable as detailed in the quickStart guides for MacOS (step 8.2), Debian (step 9.1.b), and WSL (step 9).
-
Now you can execute the entire testsuite:
nrtest execute apps/topas-v4.0.json tests/ -o benchmarks/today
or just a few tests:
nrtest execute apps/topas-v4.0.json tests/TimeFeature*.json -o benchmarks/today-timefeature
-
You can also compare the results to an old benchmark:
nrtest compare benchmarks/today benchmarks/yesterday