2
# Simple helper script to exercise unittests using all available
3
# (under /usr/bin and /usr/local/bin python2.*)
8
for python in /usr/{,local/}bin/python2.[0-9]{,.*}{,-dbg}
10
[ -e "$python" ] || continue
11
echo "Testing using $python"
12
$python ./fail2ban-testcases "$@" || failed+=" $python"
15
if [ ! -z "$failed" ]; then
16
echo "E: Failed with $failed"