diff options
Diffstat (limited to 'ent/test.sh')
-rwxr-xr-x | ent/test.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ent/test.sh b/ent/test.sh new file mode 100755 index 0000000..59f8a82 --- /dev/null +++ b/ent/test.sh @@ -0,0 +1,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 + |