run-integration-tests: print times
This commit is contained in:
parent
e00fca8c2e
commit
5a89d7b39c
|
@ -13,6 +13,7 @@ fi
|
||||||
ninja -C "$BUILD_DIR"
|
ninja -C "$BUILD_DIR"
|
||||||
|
|
||||||
declare -A results
|
declare -A results
|
||||||
|
declare -A times
|
||||||
|
|
||||||
COUNT=0
|
COUNT=0
|
||||||
FAILURES=0
|
FAILURES=0
|
||||||
|
@ -39,6 +40,7 @@ for TEST in TEST-??-* ; do
|
||||||
COUNT=$(($COUNT+1))
|
COUNT=$(($COUNT+1))
|
||||||
|
|
||||||
pass_blacklist $TEST || continue
|
pass_blacklist $TEST || continue
|
||||||
|
start=$(date +%s)
|
||||||
|
|
||||||
echo -e "\n--x-- Running $TEST --x--"
|
echo -e "\n--x-- Running $TEST --x--"
|
||||||
set +e
|
set +e
|
||||||
|
@ -48,6 +50,7 @@ for TEST in TEST-??-* ; do
|
||||||
echo "--x-- Result of $TEST: $RESULT --x--"
|
echo "--x-- Result of $TEST: $RESULT --x--"
|
||||||
|
|
||||||
results["$TEST"]="$RESULT"
|
results["$TEST"]="$RESULT"
|
||||||
|
times["$TEST"]=$(( $(date +%s) - $start ))
|
||||||
|
|
||||||
[ "$RESULT" -ne "0" ] && FAILURES=$(($FAILURES+1))
|
[ "$RESULT" -ne "0" ] && FAILURES=$(($FAILURES+1))
|
||||||
done
|
done
|
||||||
|
@ -62,11 +65,9 @@ echo ""
|
||||||
|
|
||||||
for TEST in ${!results[@]}; do
|
for TEST in ${!results[@]}; do
|
||||||
RESULT="${results[$TEST]}"
|
RESULT="${results[$TEST]}"
|
||||||
if [ "$RESULT" -eq "0" ] ; then
|
time="${times[$TEST]}"
|
||||||
echo "$TEST: SUCCESS"
|
string=$([ "$RESULT" = "0" ] && echo "SUCCESS" || echo "FAIL")
|
||||||
else
|
printf "%-35s %-8s (%3s s)\n" "${TEST}:" "${string}" "$time"
|
||||||
echo "$TEST: FAIL"
|
|
||||||
fi
|
|
||||||
done | sort
|
done | sort
|
||||||
|
|
||||||
if [ "$FAILURES" -eq 0 ] ; then
|
if [ "$FAILURES" -eq 0 ] ; then
|
||||||
|
|
Loading…
Reference in a new issue