From 92b6072ffd0744f3c949cbe9eb82c23db9fc44c9 Mon Sep 17 00:00:00 2001 From: Andy Clayton Date: Sun, 17 May 2020 15:02:53 -0500 Subject: run demo.py with ctest Fix error from newer cmake/FindPython versions not printing internal Python_EXECUTABLE variable. --- test/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c1dde710..347e4603 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -66,6 +66,12 @@ if (Python_EXECUTABLE) set_tests_properties(${_class} PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE}") endforeach() + + add_test(NAME demo + COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/python/demo.py + WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) + set_tests_properties(demo + PROPERTIES ENVIRONMENT "TZ=${Ledger_TEST_TIMEZONE};PYTHONPATH=.") endif() ### CMakeLists.txt ends here -- cgit v1.2.3