]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: add missing run script
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 8 Apr 2014 14:57:05 +0000 (16:57 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 8 Apr 2014 15:00:47 +0000 (17:00 +0200)
test/simulation/run [new file with mode: 0755]

diff --git a/test/simulation/run b/test/simulation/run
new file mode 100755 (executable)
index 0000000..75fc4e4
--- /dev/null
@@ -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 ]