File: all-tests

package info (click to toggle)
pyopengl 3.1.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,024 kB
  • sloc: python: 108,056; sh: 13; makefile: 8
file content (22 lines) | stat: -rwxr-xr-x 577 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
#!/bin/sh -fu

export HOME="$AUTOPKGTEST_TMP"
export LIBGL_ALWAYS_SOFTWARE=1
export EGL_LOG_LEVEL=debug

# display glxinfo

xvfb-run --server-args="-screen 0 1024x768x24 -ac +extension GLX +render -noreset" glxinfo

# run the full pyOpenGL test suite

cp -r tests "$AUTOPKGTEST_TMP"

rv=0
for py in $(py3versions -s 2>/dev/null)
do cd "$AUTOPKGTEST_TMP"
   echo "Testing with $py:"
   xvfb-run --server-args="-screen 0 1024x768x24 -ac +extension GLX +render -noreset -nolisten tcp" $py -m pytest -v tests -k 'not test_test_glgetfloat_leak'
   rv=$(expr $rv + $?)
done
exit $rv