We use a set of python tools to check Daisy output against a baseline. These are available from daispy-test and can be installed with
pip install daisypy-test@git+https://github.com/daisy-model/daisypy-test
Test scenarios are in test/dai_test_files.
When adding a test you need to add it as a dai_test_case in test/CMakeLists.txt.
Use ctest to run tests.
ctest
If you use MSYS2 you need to install python, pip and pandas. Installing pandas with pip fails, so it needs to be installed before daisypy-test
pacman -S mingw-w64-ucrt-x86_64-python
pacman -S mingw-w64-ucrt-x86_64-python-pip
pacman -S mingw-w64-ucrt-x86_64-python-pandas
Then you need to setup a virtual environment.
python -m venv ~/.venvs/daisy --system-site-packages
and activate it
source ~/.venvs/daisy/bin/activate
Then you can use pip to install daispy-test.
NOTE: This will most likely fail if you have already built daisy and try to setup the test environment from the build directory. The reason is that python binaries are copied to the build direcotry. The solution is to run the commands from another directory or specify the full path to the msys installed python binary.