File: unittests

package info (click to toggle)
monitoring-plugins-systemd 2.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 556 kB
  • sloc: python: 1,157; sh: 863; makefile: 25
file content (13 lines) | stat: -rw-r--r-- 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -efu

pys="$(py3versions -s 2> /dev/null)"

cp -a README-template.md test "$AUTOPKGTEST_TMP"
ln -s /usr/lib/nagios/plugins/check_systemd "$AUTOPKGTEST_TMP/check_systemd.py"
cd "$AUTOPKGTEST_TMP"

for py in $pys; do
	echo "=== $py ==="
	PYTHONPATH=. $py -m pytest -k 'not test_entry_point' test 2>&1
done