diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-03-26 00:10:59 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-03-26 00:10:59 -0500 |
commit | 62831dabef7a6c5607f7c7413fb57269f5781b6c (patch) | |
tree | 77c7dc570406436290e7a77833806799f65cc5fd | |
parent | 48d63a7cc6c4285ae0af74fec361541eb481826c (diff) | |
download | horizon-62831dabef7a6c5607f7c7413fb57269f5781b6c.tar.gz horizon-62831dabef7a6c5607f7c7413fb57269f5781b6c.tar.bz2 horizon-62831dabef7a6c5607f7c7413fb57269f5781b6c.tar.xz horizon-62831dabef7a6c5607f7c7413fb57269f5781b6c.zip |
CMake: Set CWD for Valgrind tests
This ensures that our .valgrindrc is picked up.
-rw-r--r-- | tools/hscript-simulate/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tools/hscript-validate/CMakeLists.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/hscript-simulate/CMakeLists.txt b/tools/hscript-simulate/CMakeLists.txt index dc84f7a..6684df8 100644 --- a/tools/hscript-simulate/CMakeLists.txt +++ b/tools/hscript-simulate/CMakeLists.txt @@ -17,5 +17,6 @@ ENDIF(RSPEC_EXECUTABLE) IF(VALGRIND) add_test(NAME "ValgrindSimulator" - COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/hscript-simulate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile) + COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/hscript-simulate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) ENDIF(VALGRIND) diff --git a/tools/hscript-validate/CMakeLists.txt b/tools/hscript-validate/CMakeLists.txt index 902afd7..da0590c 100644 --- a/tools/hscript-validate/CMakeLists.txt +++ b/tools/hscript-validate/CMakeLists.txt @@ -17,5 +17,6 @@ ENDIF(RSPEC_EXECUTABLE) IF(VALGRIND) add_test(NAME "ValgrindValidator" - COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/hscript-validate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile) + COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/hscript-validate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) ENDIF(VALGRIND) |