Skip to content
Snippets Groups Projects
Commit 4f9680e3 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Small change in regtest

It is possible to print html links to failed tests.
I am setting a nightly build and want to publish online
regtests results
parent 79fbc61b
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,11 @@
nerror=0
nok=0
notapp=0
html=
if [ "$1" == --html ] ; then
html=1
fi
echo
echo
......@@ -26,14 +31,18 @@ dirs=$(
for dir in $dirs
do
file=${dir}report.txt
fullname="$file"
if [ -n "$html" ] ; then
fullname='<a href="'"$file"'">'"$file"'</a>'
fi
if grep -q NOT_APPLIABLE $file ; then
((notapp++))
echo + test $dir NOT APPLIABLE
echo + check file $file for more information
echo + check file $fullname for more information
elif grep -q FAILURE $file ; then
((nerror++))
echo + ERROR in test $dir
echo + check file $file for more information
echo + check file $fullname for more information
else
((nok++))
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment