File: run

package info (click to toggle)
chrony 1.30-2%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 2,312 kB
  • ctags: 3,032
  • sloc: ansic: 19,005; sh: 1,361; yacc: 871; perl: 323; makefile: 122
file content (20 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 ]