mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-06-28 03:31:00 +00:00
* add support for Python 10-13 * gitignore files created by fail2ban-testcases Signed-off-by: Nic Boet <nic@boet.cc>
18 lines
401 B
Bash
Executable file
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
|