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:
Arun Raghavan 2018-10-13 11:01:45 +05:30
parent 39bc380c12
commit 24c389c8aa
3 changed files with 15 additions and 4 deletions

View file

@ -109,6 +109,9 @@ dist-hook:
check-daemon:
$(MAKE) -C src check-daemon
check-daemon-long:
$(MAKE) -C src check-daemon-long
.PHONY: homepage distcleancheck doxygen
# see git-version-gen

View file

@ -297,12 +297,15 @@ TESTS_norun = \
# These tests need a running pulseaudio daemon
TESTS_daemon = \
connect-stress \
extended-test \
passthrough-test \
interpol-test \
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
TESTS_default += \
sigbus-test \
@ -348,7 +351,7 @@ TESTS_ENVIRONMENT=MAKE_CHECK=1
TESTS = $(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
check_PROGRAMS = $(TESTS_default) $(TESTS_norun)
endif
@ -356,6 +359,9 @@ endif
check-daemon: $(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
TESTS_ENVIRONMENT=
TESTS =
@ -367,6 +373,8 @@ check-daemon:
@echo "Pass option \"--enable-tests\" to configure and install \"check\" library properly!"
false
check-daemon-long: check-daemon
endif
core_util_test_SOURCES = tests/core-util-test.c

View file

@ -48,7 +48,7 @@ pulseaudio -n \
&
# wait a few seconds to let the daemon start!
sleep 5
sleep 2
unset DISPLAY