File: unittests

package info (click to toggle)
pyprof2calltree 1.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: python: 498; makefile: 16; sh: 11
file content (16 lines) | stat: -rw-r--r-- 308 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -efu

pys="$(py3versions -r 2> /dev/null)"
pkg="pyprof2calltree"

mkdir -p "$AUTOPKGTEST_TMP"/"$pkg"
cp -a test "$AUTOPKGTEST_TMP"/"$pkg"
cd "$AUTOPKGTEST_TMP"/"$pkg"

export PYTHONPATH="$AUTOPKGTEST_TMP"/"$pkg"

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