File: unittests3

package info (click to toggle)
python-cffi 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,540 kB
  • sloc: python: 26,777; ansic: 13,858; asm: 116; makefile: 103; sh: 28
file content (23 lines) | stat: -rwxr-xr-x 621 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
20
21
22
23
#!/bin/sh
set -efu

pythons="$(py3versions -s)"
cp -a c testing "$AUTOPKGTEST_TMP"

# Not appropriate:
rm "$AUTOPKGTEST_TMP"/testing/cffi0/test_version.py
rm "$AUTOPKGTEST_TMP"/testing/cffi1/test_parse_c_type.py

# Temporary hack until cffi defaults to calling virtualenv with --never-download
export VIRTUALENV_DOWNLOAD=no

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

cd "$AUTOPKGTEST_TMP"
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