diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 12:08:15 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 20:44:08 +0100 |
commit | 2c0cf2e0c933b16a107cc29451ad92d3a48bb481 (patch) | |
tree | f669c222dceaeff0214fb673c601f7a6b0c15fef /test/CMakeLists.txt | |
parent | 14db8c8f10377607c85a7fe449af8001a64f088e (diff) | |
download | fork-ledger-2c0cf2e0c933b16a107cc29451ad92d3a48bb481.tar.gz fork-ledger-2c0cf2e0c933b16a107cc29451ad92d3a48bb481.tar.bz2 fork-ledger-2c0cf2e0c933b16a107cc29451ad92d3a48bb481.zip |
tests: Modernize test scripts
by using argparse and pathlib and removing Python 2 specific code.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 301959db..559c757a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,7 +31,7 @@ macro(add_ledger_harness_tests _class) if ((TestFile_IsPythonTest EQUAL -1) OR HAVE_BOOST_PYTHON) add_test(NAME ${_class}Test_${TestFile_Name} COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/RegressTests.py - $<TARGET_FILE:ledger> ${PROJECT_SOURCE_DIR} + --ledger $<TARGET_FILE:ledger> --sourcepath ${PROJECT_SOURCE_DIR} ${TestFile} ${TEST_PYTHON_FLAGS}) set_tests_properties(${_class}Test_${TestFile_Name} PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE}") |