Skip to content

Commit

Permalink
fixed smoke_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Jan 16, 2025
1 parent 11d06c9 commit 1b757f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# TODO use submodule FetchContent/ExternalProject/ExternalData
set(PCMS_TEST_DATA_DIR "" CACHE PATH
"Path to a local copy of the pcms_coupling_data repo.")
if (NOT EXISTS ${PCMS_TEST_DATA_DIR})
message(FATAL_ERROR "PCMS_TEST_DATA_DIR \"${PCMS_TEST_DATA_DIR}\" is not accessible")
endif ()

include(ProcessorCount)
ProcessorCount(HOST_NPROC)
message("TESTING ON SYSTEM WITH ${HOST_NPROC} CPU Cores")

message(STATUS "MPIEXEC_EXECUTABLE: ${MPIEXEC_EXECUTABLE}")
message(STATUS "MPIEXEC_NUMPROC_FLAG: ${MPIEXEC_NUMPROC_FLAG}")
set(VALGRIND_EXECUTABLE "none" CACHE FILEPATH "path to valgrind executable")
set(VALGRIND_ARGS "none" CACHE STRING "specify valgrind options; logging (--log-file=%p_<name>.vg) is enabled by default if VALGRIND_EXECUTABLE is set")
message(STATUS "VALGRIND_EXECUTABLE: ${VALGRIND_EXECUTABLE}")
message(STATUS "VALGRIND_ARGS: ${VALGRIND_ARGS}")

Expand Down
10 changes: 10 additions & 0 deletions test/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ if (PCMS_ENABLE_OMEGA_H)
target_link_libraries(test_support pcms::core ) #for omegah and redev
endif ()

# TODO use submodule FetchContent/ExternalProject/ExternalData
set(PCMS_TEST_DATA_DIR "" CACHE PATH
"Path to a local copy of the pcms_coupling_data repo.")
if (NOT EXISTS ${PCMS_TEST_DATA_DIR})
message(FATAL_ERROR "PCMS_TEST_DATA_DIR \"${PCMS_TEST_DATA_DIR}\" is not accessible")
endif ()

set(VALGRIND_EXECUTABLE "none" CACHE FILEPATH "path to valgrind executable")
set(VALGRIND_ARGS "none" CACHE STRING "specify valgrind options; logging (--log-file=%p_<name>.vg) is enabled by default if VALGRIND_EXECUTABLE is set")

function(add_exe NAME)
add_executable(${NAME} ${NAME}.cpp)
target_link_libraries(${NAME} pcms::core)
Expand Down

0 comments on commit 1b757f8

Please sign in to comment.