Skip to content

Commit

Permalink
replace cmake_source_dir with project_source on integration tests (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoparente authored Mar 21, 2022
1 parent 98b6f5a commit 4fb703c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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}
# )

0 comments on commit 4fb703c

Please sign in to comment.