Skip to content

Commit

Permalink
Use tee in tests. (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Sep 23, 2024
1 parent 1f6c2aa commit a38a4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ endmacro(setup_test)
# Standard regression test
function(add_test_r TEST_NAME)
setup_test()
add_test(${TEST_NAME} sh -c "${MPI_COMMANDS} ${CMAKE_BINARY_DIR}/${EXAWIND_EXE_NAME} ${MPIEXEC_POSTFLAGS} ${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.yaml > ${TEST_NAME}.log ${SAVE_GOLDS_COMMAND} ${FCOMPARE_COMMAND}")
add_test(${TEST_NAME} sh -c "${MPI_COMMANDS} ${CMAKE_BINARY_DIR}/${EXAWIND_EXE_NAME} ${MPIEXEC_POSTFLAGS} ${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.yaml 2>&1 | tee ${TEST_NAME}.log ${SAVE_GOLDS_COMMAND} ${FCOMPARE_COMMAND}")
# Set properties for test
set_tests_properties(${TEST_NAME} PROPERTIES
TIMEOUT 5400
PROCESSORS ${TEST_NP}
WORKING_DIRECTORY "${CURRENT_TEST_BINARY_DIR}/"
LABELS "regression"
ATTACHED_FILES_ON_FAIL "${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.log")
ATTACHED_FILES "${CURRENT_TEST_BINARY_DIR}/${TEST_NAME}.log")
endfunction(add_test_r)

#=============================================================================
Expand Down

0 comments on commit a38a4d5

Please sign in to comment.