2013-02-24 18:27:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Simple helper script to exercise unittests using all available
|
2013-02-24 19:24:07 +00:00
|
|
|
# (under /usr/bin and /usr/local/bin python3.*)
|
2013-02-24 18:27:40 +00:00
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
failed=
|
|
|
|
for python in /usr/{,local/}bin/python3.[0-9]{,.*}{,-dbg}
|
|
|
|
do
|
|
|
|
[ -e "$python" ] || continue
|
|
|
|
echo "Testing using $python"
|
2013-04-13 15:58:05 +00:00
|
|
|
$python bin/fail2ban-testcases "$@" || failed+=" $python"
|
2013-02-24 18:27:40 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
if [ ! -z "$failed" ]; then
|
|
|
|
echo "E: Failed with $failed"
|
|
|
|
exit 1
|
|
|
|
fi
|