blob: 59f8a823b9c4dc638539cf0a7e528a766a3ea971 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
runs=10
for i in $(seq -w "$runs"); do
./entest -vf <(../src/haveged -n 16384k -f -) > "${i}_entest.log"
done
fails=$(grep Fail ./*_entest.log | wc -l)
if (( fails > 2 )); then
echo "Total $fails in $runs"
grep Fail ./*_entest.log
echo "Marking the whole test as failed"
exit 255
else
echo "Test passed!"
fi
|