mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 12:34:48 +00:00
Merge pull request #314 from ting-ms/master
Update test script to generate JUnit format test report.
This commit is contained in:
@@ -43,7 +43,7 @@ function test() {
|
|||||||
else
|
else
|
||||||
repeat_fail=${CTEST_REPEAT_FAIL}
|
repeat_fail=${CTEST_REPEAT_FAIL}
|
||||||
fi
|
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
|
popd
|
||||||
grep -E "^(\s*[0-9]+|Total)" build/$1/$1.txt >build/$1.txt
|
grep -E "^(\s*[0-9]+|Total)" build/$1/$1.txt >build/$1.txt
|
||||||
sed -i "s/\x1B\[[0-9;]*[JKmsu]//g" build/$1.txt
|
sed -i "s/\x1B\[[0-9;]*[JKmsu]//g" build/$1.txt
|
||||||
|
|||||||
@@ -2,8 +2,11 @@
|
|||||||
#
|
#
|
||||||
# Install necessary softwares for Ubuntu.
|
# Install necessary softwares for Ubuntu.
|
||||||
|
|
||||||
apt-get update
|
# Remove large folder to save space
|
||||||
apt-get install -y \
|
rm -rf /opt/hostedtoolcache
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
gcc-multilib \
|
gcc-multilib \
|
||||||
git \
|
git \
|
||||||
g++ \
|
g++ \
|
||||||
@@ -19,3 +22,5 @@ apt-get install -y \
|
|||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
pip3 install gcovr==4.1
|
pip3 install gcovr==4.1
|
||||||
|
|
||||||
|
# Upgrade cmake to the latest version.
|
||||||
|
pip install --upgrade cmake
|
||||||
|
|||||||
Reference in New Issue
Block a user