From: Miroslav Lichvar Date: Tue, 8 Apr 2014 14:57:05 +0000 (+0200) Subject: test: add missing run script X-Git-Tag: 1.30-pre1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eac078c182b8206d87e96fcb3c5e89084d49751;p=thirdparty%2Fchrony.git test: add missing run script --- diff --git a/test/simulation/run b/test/simulation/run new file mode 100755 index 00000000..75fc4e4b --- /dev/null +++ b/test/simulation/run @@ -0,0 +1,20 @@ +#!/bin/bash + +. test.common + +passed=() failed=() + +[ $# -gt 0 ] && tests=($@) || tests=([0-9]*-*[^_]) + +for test in "${tests[@]}"; do + echo "$test ($[${#passed[@]} + ${#failed[@]} + 1]/${#tests[@]})" + ./$test && passed=(${passed[@]} $test) || failed=(${failed[@]} $test) + echo +done + +echo "SUMMARY:" +echo " TOTAL $[${#passed[@]} + ${#failed[@]}]" +echo " PASSED ${#passed[@]}" +echo " FAILED ${#failed[@]} (${failed[@]})" + +[ ${#failed} -eq 0 ]