File: unittests3

package info (click to toggle)
python-cffi 0.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,444 kB
  • ctags: 2,579
  • sloc: python: 12,599; ansic: 6,343; asm: 116; makefile: 84; sh: 24
file content (19 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -efu

pythons="$(py3versions -r)"
cp -a c testing "$ADTTMP"

# Not appropriate:
rm "$ADTTMP"/testing/test_version.py

# Delete any stale __pycache__s
find "$ADTTMP" -name '__pycache__' -print0 | xargs -0 rm -rf

cd "$ADTTMP"
for py in $pythons; do
	echo "======= $py ======="
	$py -m pytest --tb=native c testing
	echo "======= $py-dbg ======="
	$py-dbg -m pytest --tb=native c testing 2>&1
done