Support custom temp and tests directories (#1268) (#1270)

The following user-settable values for CMake are supported:

- TESTS_DIR: Tests directory, is path to unit test data when 'data' is
  appended. Can be used to run the unit tests on a target.
- TESTS_TMPDIR: Directory for temporary files created during unit tests,
  system tmpdir is used if undefined. Has to be defined on systems
  without global temporary directory.
This commit is contained in:
Urs Fleisch
2025-05-01 19:55:46 +02:00
committed by GitHub
parent ee1931b811
commit fbbead3efd
4 changed files with 63 additions and 3 deletions

View File

@ -20,5 +20,6 @@
#cmakedefine TRACE_IN_RELEASE 1
#cmakedefine TESTS_DIR "@TESTS_DIR@"
#cmakedefine TESTS_TMPDIR "@TESTS_TMPDIR@"
#endif