From 4fb703c6b40ded97c002914220c5d51ec3a5e5e9 Mon Sep 17 00:00:00 2001 From: leoparente <95628882+leoparente@users.noreply.github.com> Date: Mon, 21 Mar 2022 16:58:11 -0400 Subject: [PATCH] replace cmake_source_dir with project_source on integration tests (#239) --- integration_tests/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index 96c1b64e4..76f75857d 100644 --- a/integration_tests/CMakeLists.txt +++ b/integration_tests/CMakeLists.txt @@ -1,11 +1,11 @@ -set(FIXTURE_DIR ${CMAKE_SOURCE_DIR}/src/tests/fixtures) +set(FIXTURE_DIR ${PROJECT_SOURCE_DIR}/src/tests/fixtures) set(HOST_VAR "-H 127.0.0.1/32") set(PCAP_BINARY ${CMAKE_BINARY_DIR}/bin/pktvisor-reader) set(PKTD_BINARY ${CMAKE_BINARY_DIR}/bin/pktvisord) set(VISOR_DYNMODULE_DIR ${CMAKE_BINARY_DIR}/lib/) -set(INT_SH ${CMAKE_SOURCE_DIR}/integration_tests/integration.sh) -set(WORKING_DIR ${CMAKE_SOURCE_DIR}/integration_tests) +set(INT_SH ${PROJECT_SOURCE_DIR}/integration_tests/integration.sh) +set(WORKING_DIR ${PROJECT_SOURCE_DIR}/integration_tests) macro(visor_pcap_int_test name) add_test(NAME ${name} @@ -32,5 +32,5 @@ endif() # this allows local, non-public integration tests (for example, on private pcap data) #add_test(NAME external-tests # WORKING_DIRECTORY ${WORKING_DIR} -# COMMAND ${CMAKE_SOURCE_DIR}/integration_tests/external.sh ${PCAP_BINARY} +# COMMAND ${PROJECT_SOURCE_DIR}/integration_tests/external.sh ${PCAP_BINARY} # )