| 1 |
|
| 2 |
|
| 3 |
XVFB_OPTS=--auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" |
| 4 |
|
| 5 |
EXCLUDED_TESTS := |
| 6 |
|
| 7 |
EXCLUDED_TESTS += not interactive |
| 8 |
|
| 9 |
EXCLUDED_TESTS += and not PulseAudio |
| 10 |
EXCLUDED_TESTS += and not test_pulse |
| 11 |
EXCLUDED_TESTS += and not test_player_play |
| 12 |
EXCLUDED_TESTS += and not test_player_play_multiple |
| 13 |
|
| 14 |
EXCLUDED_TESTS += and not test_player_silent_audio_driver |
| 15 |
|
| 16 |
|
| 17 |
EXCLUDED_TESTS += and not test_freetype_face |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
EXCLUDED_TESTS += and not test_fontconfig |
| 22 |
EXCLUDED_TESTS += and not test_linux_fontconfig |
| 23 |
EXCLUDED_TESTS += and not test_driver |
| 24 |
|
| 25 |
EXCLUDED_TESTS += and not test_openal |
| 26 |
|
| 27 |
EXCLUDED_TESTS += and not test_elapsed_time_between_tick |
| 28 |
EXCLUDED_TESTS += and not test_compute_fps |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
EXCLUDED_TEST_GROUPS = --ignore=tests/interactive |
| 33 |
|
| 34 |
export PYBUILD_NAME=pyglet |
| 35 |
export PYBUILD_TEST_CUSTOM=1 |
| 36 |
export PYBUILD_TEST_ARGS=xvfb-run $(XVFB_OPTS) python{version} -m pytest -v -k "$(EXCLUDED_TESTS)" $(EXCLUDED_TEST_GROUPS) |
| 37 |
|
| 38 |
%: |
| 39 |
dh $@ --buildsystem=pybuild |
| 40 |
|