From 57c251cd391dc5057bfbba57108a03cc8f8ec0cf Mon Sep 17 00:00:00 2001 From: tinzhu Date: Fri, 10 Nov 2023 15:37:49 +0800 Subject: [PATCH] Run ctest with additional option "--output-junit" to generate JUnit format test result. --- scripts/cmake_bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cmake_bootstrap.sh b/scripts/cmake_bootstrap.sh index 5cbfc9aa..c5d59ac0 100755 --- a/scripts/cmake_bootstrap.sh +++ b/scripts/cmake_bootstrap.sh @@ -43,7 +43,7 @@ function test() { else repeat_fail=${CTEST_REPEAT_FAIL} fi - ctest $parallel --timeout 1000 -O $1.txt -T test --no-compress-output --test-output-size-passed 4194304 --test-output-size-failed 4194304 --output-on-failure --repeat until-pass:${repeat_fail} + ctest $parallel --timeout 1000 -O $1.txt -T test --no-compress-output --test-output-size-passed 4194304 --test-output-size-failed 4194304 --output-on-failure --repeat until-pass:${repeat_fail} --output-junit $1.xml popd grep -E "^(\s*[0-9]+|Total)" build/$1/$1.txt >build/$1.txt sed -i "s/\x1B\[[0-9;]*[JKmsu]//g" build/$1.txt