File: unittests

package info (click to toggle)
python-click 8.2.0%2B0.really.8.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,456 kB
  • sloc: python: 11,531; makefile: 28; sh: 11
file content (18 lines) | stat: -rw-r--r-- 341 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 pyproject.toml tests "$AUTOPKGTEST_TMP"

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

cd "$AUTOPKGTEST_TMP"

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