test suite: prettier printing of timing results

time-shift
Houtan Bastani 2015-09-17 11:00:13 +02:00
parent ad3d00f0da
commit b28f9ef0b3
1 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ echo '| FAIL: '$failed >> $outfile
echo '| XFAIL: '$xfailed >> $outfile
echo '| XPASS: '$xpassed >> $outfile
if [ $failed -gt 0 ] ; then
echo '| LIST OF FAILED TESTS:' >> $outfile
echo '| LIST OF FAILED TESTS:' >> $outfile
for file in ${failed_tests[@]} ; do
if [ "$prg" == "MATLAB" ]; then
modfile=`sed 's/\.m\.trs/\.mod/g' <<< $file` >> $outfile
@ -97,5 +97,6 @@ if [ "$prg" == "MATLAB" ]; then
else
timing=`sed 's/\.o\.trs/\.mod/g' <<< $timing`
fi
echo $timing | tr ':' '\n' | sed -e 's/^[ \t]*//' | sed '/^$/d' >> $outfile
echo $timing | tr ':' '\n' | sed -e 's/^[ \t]*//' | \
sed '/^$/d' | sed -e 's/^|[ ]/| * /' >> $outfile
echo >> $outfile