From 69af0f721fefaf2ccf5efb1921287105411ba1ee Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 30 May 2022 19:39:09 +0200 Subject: [PATCH] Split source and build test directories --- test/CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index eb654ba..94e732e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,24 +14,25 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -set(OVNI_TEST_DIR "${CMAKE_SOURCE_DIR}/test") +set(OVNI_TEST_SOURCE_DIR "${CMAKE_SOURCE_DIR}/test") +set(OVNI_TEST_BUILD_DIR "${CMAKE_BINARY_DIR}/test") add_executable(flush flush.c) target_link_libraries(flush ovni) -add_test(NAME flush COMMAND "${OVNI_TEST_DIR}/driver.sh" flush) +add_test(NAME flush COMMAND "${OVNI_TEST_SOURCE_DIR}/driver.sh" flush) set_tests_properties(flush PROPERTIES RUN_SERIAL TRUE) add_executable(flush-overhead flush-overhead.c) target_link_libraries(flush-overhead ovni) -add_test(NAME flush-overhead COMMAND "${OVNI_TEST_DIR}/driver.sh" flush-overhead) +add_test(NAME flush-overhead COMMAND "${OVNI_TEST_SOURCE_DIR}/driver.sh" flush-overhead) set_tests_properties(flush-overhead PROPERTIES RUN_SERIAL TRUE) add_executable(mp-simple mp-simple.c) target_link_libraries(mp-simple ovni) -add_test(NAME mp-simple COMMAND "${OVNI_TEST_DIR}/mp-driver.sh" mp-simple) +add_test(NAME mp-simple COMMAND "${OVNI_TEST_SOURCE_DIR}/mp-driver.sh" mp-simple) set_tests_properties(mp-simple PROPERTIES RUN_SERIAL TRUE) add_executable(mp-rank mp-rank.c) target_link_libraries(mp-rank ovni) -add_test(NAME mp-rank COMMAND "${OVNI_TEST_DIR}/mp-driver.sh" mp-rank) +add_test(NAME mp-rank COMMAND "${OVNI_TEST_SOURCE_DIR}/mp-driver.sh" mp-rank) set_tests_properties(mp-rank PROPERTIES RUN_SERIAL TRUE)