File: unittests

package info (click to toggle)
python-click 8.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,348 kB
  • sloc: python: 10,990; makefile: 31; sh: 11
file content (18 lines) | stat: -rw-r--r-- 331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -efu

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

cp -a setup.cfg tests "$AUTOPKGTEST_TMP"

# needed by `test_expand_args`
mkdir $AUTOPKGTEST_TMP/docs
cp -a docs/conf.py $AUTOPKGTEST_TMP/docs
cp -a setup.cfg "$AUTOPKGTEST_TMP"

cd "$AUTOPKGTEST_TMP"

for py in $pys; do
  echo "=== $py ==="
  $py -m pytest tests 2>&1
done