#!/bin/sh -fu

# run the full pyOpenGL test suite

cp -r tests "$AUTOPKGTEST_TMP"

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