mirror of https://github.com/CGAL/cgal
Fix run_testsuite_with_ctest on Cygwin
This commit is contained in:
parent
e739cb7360
commit
b68e2a5005
|
|
@ -331,7 +331,11 @@ run_test_on_platform()
|
|||
if [ -n "${SCRIPTS_DIR}" ]; then
|
||||
touch ../../../../../.scm-branch
|
||||
fi
|
||||
python3 ${CGAL_DIR}/${TESTSUITE_DIR}test/parse-ctest-dashboard-xml.py $CGAL_TESTER $PLATFORM
|
||||
# The strange way to run the script is to avoid the error message:
|
||||
# python3: can't open file '/cygdrive/c/CGAL_ROOT/CGAL-5.5-Ic-68/C:/CGAL_ROOT/CGAL-5.5-Ic-68/test/parse-ctest-dashboard-xml.py': [Errno 2] No such file or directory
|
||||
# It seems Python 3.9 from Cygwin cannot understand the Windows paths,
|
||||
# but its `open` function can.
|
||||
python3 -c "exec(open(\"${CGAL_DIR}/${TESTSUITE_DIR}test/parse-ctest-dashboard-xml.py\").read())" $CGAL_TESTER $PLATFORM
|
||||
|
||||
for file in $(ls|grep _Tests); do
|
||||
mv $file "$(echo "$file" | sed 's/_Tests//g')"
|
||||
|
|
@ -343,7 +347,7 @@ run_test_on_platform()
|
|||
cat "${CGAL_BINARY_DIR}/package_installation.log" >> "Installation/${TEST_REPORT}"
|
||||
|
||||
#call the python script to complete the results report.
|
||||
python3 ${CGAL_DIR}/${TESTSUITE_DIR}test/post_process_ctest_results.py Installation/${TEST_REPORT} ${TEST_REPORT} results_${CGAL_TESTER}_${PLATFORM}.txt
|
||||
python3 -c "exec(open(\"${CGAL_DIR}/${TESTSUITE_DIR}test/post_process_ctest_results.py\").read())" Installation/${TEST_REPORT} ${TEST_REPORT} results_${CGAL_TESTER}_${PLATFORM}.txt
|
||||
rm -f $OUTPUT_FILE $OUTPUT_FILE.gz
|
||||
if [ -n "${SCRIPTS_DIR}" ]; then
|
||||
rm ../../../../../.scm-branch
|
||||
|
|
|
|||
Loading…
Reference in New Issue