summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Chen <[email protected]>2023-11-16 13:31:34 +0800
committerGitHub <[email protected]>2023-11-16 13:31:34 +0800
commitd17d7bdcbded725e729e324a3cb6b64077553151 (patch)
treeb489b8fc614f4ca126f5e0e459af6b33eeee63a5
parentcd87763dbd1a248925a52c95f38b468e3ccfee30 (diff)
parent2362271d4b5359b2ed24ca5cb47d2df159e61248 (diff)
Merge pull request #314 from ting-ms/master
Update test script to generate JUnit format test report.
-rwxr-xr-xscripts/cmake_bootstrap.sh2
-rwxr-xr-xscripts/install.sh9
2 files changed, 8 insertions, 3 deletions
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
diff --git a/scripts/install.sh b/scripts/install.sh
index af7b2174..752a03b4 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -2,8 +2,11 @@
#
# Install necessary softwares for Ubuntu.
-apt-get update
-apt-get install -y \
+# Remove large folder to save space
+rm -rf /opt/hostedtoolcache
+
+sudo apt-get update
+sudo apt-get install -y \
gcc-multilib \
git \
g++ \
@@ -19,3 +22,5 @@ apt-get install -y \
python3 -m pip install --upgrade pip
pip3 install gcovr==4.1
+# Upgrade cmake to the latest version.
+pip install --upgrade cmake