fail2ban/fail2ban-testcases-all-python3
Nic Boet c8dd47341b improve fail2ban-testcases for modern python versions
* add support for Python 10-13
* gitignore files created by fail2ban-testcases

Signed-off-by: Nic Boet <nic@boet.cc>
2024-07-25 14:11:59 -05:00

18 lines
401 B
Bash
Executable file

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