[ci] Run ctest with wheel config

Usage:

python -m venv .venv
source .venv/bin/activate
pip install -e .[test] -v
pytest
ctest --test-dir _skbuild/cp* -LE large
  • Added a new job build with pip which runs these commands.
  • ogs from wheel now supports integrated vtkdiff checking (-r-option).
  • Enabled building of the testrunner in wheel configs.

Just a note: It is also possible to copy the ctest config outside of the build directory with:

cd build-dir
fd CTestTestfile.cmake -E _deps -0 | rsync -a --files-from=- --from0 ./ /tmp/ctestfiles/
ctest --test-dir /tmp/ctestfiles

But there are still hardcoded build dir paths. Some could be re-written to relative paths (e.g. ogs output directory) but some ctest require a working directory inside the build-directory (some utils tests). To make this more usable there is more work required.

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behaviour change was documented?
Edited by Lars Bilke

Merge request reports

Loading