mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 18:35:06 -05:00
test: add missing run script
This commit is contained in:
20
test/simulation/run
Executable file
20
test/simulation/run
Executable file
@@ -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 ]
|
||||
Reference in New Issue
Block a user