File: unittests

package info (click to toggle)
python-fissix 24.4.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,156 kB
  • sloc: python: 16,578; sh: 56; makefile: 48
file content (17 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -efu

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

mkdir -p "$AUTOPKGTEST_TMP"/"$pkg"/fissix
cp -a tests "$AUTOPKGTEST_TMP"/"$pkg"
cp -a fissix/tests fissix/Grammar.txt "$AUTOPKGTEST_TMP"/"$pkg"/fissix
cd "$AUTOPKGTEST_TMP"/"$pkg"

for py in $pys; do
       echo "=== testing with $py ==="
       $py -m pytest --verbose tests
       $py -m pytest --verbose fissix/tests
done