Skip to content

Commit d17d7bd

Browse files
authored
Merge pull request #314 from ting-ms/master
Update test script to generate JUnit format test report.
2 parents cd87763 + 2362271 commit d17d7bd

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scripts/cmake_bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function test() {
4343
else
4444
repeat_fail=${CTEST_REPEAT_FAIL}
4545
fi
46-
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}
46+
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
4747
popd
4848
grep -E "^(\s*[0-9]+|Total)" build/$1/$1.txt >build/$1.txt
4949
sed -i "s/\x1B\[[0-9;]*[JKmsu]//g" build/$1.txt

scripts/install.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
#
33
# Install necessary softwares for Ubuntu.
44

5-
apt-get update
6-
apt-get install -y \
5+
# Remove large folder to save space
6+
rm -rf /opt/hostedtoolcache
7+
8+
sudo apt-get update
9+
sudo apt-get install -y \
710
gcc-multilib \
811
git \
912
g++ \
@@ -19,3 +22,5 @@ apt-get install -y \
1922
python3 -m pip install --upgrade pip
2023
pip3 install gcovr==4.1
2124

25+
# Upgrade cmake to the latest version.
26+
pip install --upgrade cmake

0 commit comments

Comments
 (0)