File: fail2ban-testcases-all-python3

package info (click to toggle)
fail2ban 1.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,076 kB
  • sloc: python: 23,095; sh: 527; xml: 352; perl: 344; makefile: 191
file content (18 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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-9]{,.*}{,-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