mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
tests: Shorten how long daemon tests take to run
We split out some of the check-daemon tests that take a long time to run, and also reduce how long we wait for the daemon to start up. This should make the CI process quicker.
This commit is contained in:
parent
39bc380c12
commit
24c389c8aa
3 changed files with 15 additions and 4 deletions
|
|
@ -109,6 +109,9 @@ dist-hook:
|
||||||
check-daemon:
|
check-daemon:
|
||||||
$(MAKE) -C src check-daemon
|
$(MAKE) -C src check-daemon
|
||||||
|
|
||||||
|
check-daemon-long:
|
||||||
|
$(MAKE) -C src check-daemon-long
|
||||||
|
|
||||||
.PHONY: homepage distcleancheck doxygen
|
.PHONY: homepage distcleancheck doxygen
|
||||||
|
|
||||||
# see git-version-gen
|
# see git-version-gen
|
||||||
|
|
|
||||||
|
|
@ -297,12 +297,15 @@ TESTS_norun = \
|
||||||
|
|
||||||
# These tests need a running pulseaudio daemon
|
# These tests need a running pulseaudio daemon
|
||||||
TESTS_daemon = \
|
TESTS_daemon = \
|
||||||
connect-stress \
|
|
||||||
extended-test \
|
extended-test \
|
||||||
passthrough-test \
|
passthrough-test \
|
||||||
interpol-test \
|
|
||||||
sync-playback
|
sync-playback
|
||||||
|
|
||||||
|
# These tests need a running daemon and take a while to complete
|
||||||
|
TESTS_daemon_long = \
|
||||||
|
connect-stress \
|
||||||
|
interpol-test
|
||||||
|
|
||||||
if !OS_IS_WIN32
|
if !OS_IS_WIN32
|
||||||
TESTS_default += \
|
TESTS_default += \
|
||||||
sigbus-test \
|
sigbus-test \
|
||||||
|
|
@ -348,7 +351,7 @@ TESTS_ENVIRONMENT=MAKE_CHECK=1
|
||||||
TESTS = $(TESTS_default)
|
TESTS = $(TESTS_default)
|
||||||
|
|
||||||
if BUILD_TESTS_DEFAULT
|
if BUILD_TESTS_DEFAULT
|
||||||
noinst_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
|
noinst_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon) $(TESTS_daemon_long)
|
||||||
else
|
else
|
||||||
check_PROGRAMS = $(TESTS_default) $(TESTS_norun)
|
check_PROGRAMS = $(TESTS_default) $(TESTS_norun)
|
||||||
endif
|
endif
|
||||||
|
|
@ -356,6 +359,9 @@ endif
|
||||||
check-daemon: $(TESTS_daemon)
|
check-daemon: $(TESTS_daemon)
|
||||||
PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon)
|
PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon)
|
||||||
|
|
||||||
|
check-daemon-long: $(TESTS_daemon_long)
|
||||||
|
PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon_long)
|
||||||
|
|
||||||
else
|
else
|
||||||
TESTS_ENVIRONMENT=
|
TESTS_ENVIRONMENT=
|
||||||
TESTS =
|
TESTS =
|
||||||
|
|
@ -367,6 +373,8 @@ check-daemon:
|
||||||
@echo "Pass option \"--enable-tests\" to configure and install \"check\" library properly!"
|
@echo "Pass option \"--enable-tests\" to configure and install \"check\" library properly!"
|
||||||
false
|
false
|
||||||
|
|
||||||
|
check-daemon-long: check-daemon
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
core_util_test_SOURCES = tests/core-util-test.c
|
core_util_test_SOURCES = tests/core-util-test.c
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ pulseaudio -n \
|
||||||
&
|
&
|
||||||
|
|
||||||
# wait a few seconds to let the daemon start!
|
# wait a few seconds to let the daemon start!
|
||||||
sleep 5
|
sleep 2
|
||||||
|
|
||||||
unset DISPLAY
|
unset DISPLAY
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue