rhdtownsend / msg

Multidimensional Spectral Grids
GNU General Public License v3.0
11 stars 3 forks source link

Automated tests? #12

Closed AWehrhahn closed 1 year ago

AWehrhahn commented 2 years ago

Hi, I couldn't find any tests. There is nothing in my bin directory for the run_test.sh script to run?

Review Thread: https://github.com/openjournals/joss-reviews/issues/4602

ivastar commented 2 years ago

Granted I installed from source, but the make file did not have the test suite turned on by default. In build/Makefile:

# Build test programs TESTS ?= no

After some rummaging around to find this setting, I turned the tests on and was able to run them locally. I assume they passed? I would recommend that these are turned on by default and the expected output is described in the documentation.

rhdtownsend commented 1 year ago

The tests are now compiled by default, and can be run via the command

make -C $MSG_DIR test

(this is also noted in the Quick-Start documentation). At the end of the tests, a summary is printed indicating the number of passes and fails.