From 4050ea8049ac260a9e5eeb19d0c1ffb41d3475ee Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 2 Jan 2024 16:17:51 +0100 Subject: [PATCH] save the CTest output to a log file --- run-testsuite.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/run-testsuite.sh b/run-testsuite.sh index 90095b6..c8b5977 100755 --- a/run-testsuite.sh +++ b/run-testsuite.sh @@ -103,13 +103,12 @@ echo "SET(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 1000000000)" > CTestCusto echo "SET(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE 1000000000)" >> CTestCustom.cmake CTEST_OPTS="-T Start -T Test --timeout 1200 ${DO_NOT_TEST:+-E execution___of__}" if [ -z "${SHOW_PROGRESS}" ]; then - ctest ${TO_TEST:+-L ${TO_TEST} } ${CTEST_OPTS} -j${CGAL_NUMBER_OF_JOBS} ${KEEP_TESTS:+-FC .}>tmp.txt || : + ctest ${TO_TEST:+-L ${TO_TEST} } ${CTEST_OPTS} -j${CGAL_NUMBER_OF_JOBS} ${KEEP_TESTS:+-FC .}>${CGAL_TESTRESULTS}ctest-${CGAL_TEST_PLATFORM}.log || : else - ctest ${TO_TEST:+-L ${TO_TEST} } ${CTEST_OPTS} -j${CGAL_NUMBER_OF_JOBS} ${KEEP_TESTS:+-FC .}|tee tmp.txt || : + ctest ${TO_TEST:+-L ${TO_TEST} } ${CTEST_OPTS} -j${CGAL_NUMBER_OF_JOBS} ${KEEP_TESTS:+-FC .}|tee ${CGAL_TESTRESULTS}ctest-${CGAL_TEST_PLATFORM}.log || : fi -TAG_DIR=$(awk '/^Create new tag: /{print $4F}' tmp.txt) -rm tmp.txt +TAG_DIR=$(awk '/^Create new tag: /{print $4F}' ${CGAL_TESTRESULTS}ctest-${CGAL_TEST_PLATFORM}.log) cd Testing/${TAG_DIR} RESULT_FILE=./"results_${CGAL_TESTER}_${PLATFORM}.txt" rm -f "$RESULT_FILE"