mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
tests: Add a target for running manual tests
This adds a check-daemon make target which requires a running PulseAudio server to test against.
This commit is contained in:
parent
cc89b4aff1
commit
80cfa050db
1 changed files with 15 additions and 8 deletions
|
|
@ -215,7 +215,7 @@ pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
|
||||||
# Test programs #
|
# Test programs #
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
TESTS = \
|
TESTS_default = \
|
||||||
mainloop-test \
|
mainloop-test \
|
||||||
strlist-test \
|
strlist-test \
|
||||||
close-test \
|
close-test \
|
||||||
|
|
@ -248,23 +248,26 @@ TESTS_norun = \
|
||||||
parec-simple \
|
parec-simple \
|
||||||
extended-test \
|
extended-test \
|
||||||
sync-playback \
|
sync-playback \
|
||||||
interpol-test \
|
|
||||||
flist-test \
|
flist-test \
|
||||||
remix-test \
|
remix-test \
|
||||||
rtstutter \
|
rtstutter \
|
||||||
sig2str-test \
|
sig2str-test \
|
||||||
stripnul \
|
stripnul \
|
||||||
connect-stress \
|
|
||||||
echo-cancel-test
|
echo-cancel-test
|
||||||
|
|
||||||
|
# These tests need a running pulseaudio daemon
|
||||||
|
TESTS_daemon = \
|
||||||
|
connect-stress \
|
||||||
|
interpol-test
|
||||||
|
|
||||||
if !OS_IS_WIN32
|
if !OS_IS_WIN32
|
||||||
TESTS += \
|
TESTS_default += \
|
||||||
sigbus-test \
|
sigbus-test \
|
||||||
usergroup-test
|
usergroup-test
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !OS_IS_DARWIN
|
if !OS_IS_DARWIN
|
||||||
TESTS += \
|
TESTS_default += \
|
||||||
once-test
|
once-test
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -275,7 +278,7 @@ TESTS_norun += \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_GLIB20
|
if HAVE_GLIB20
|
||||||
TESTS += \
|
TESTS_default += \
|
||||||
mainloop-test-glib
|
mainloop-test-glib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -290,13 +293,17 @@ TESTS_norun += \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TESTS_ENVIRONMENT=MAKE_CHECK=1
|
TESTS_ENVIRONMENT=MAKE_CHECK=1
|
||||||
|
TESTS = $(TESTS_default)
|
||||||
|
|
||||||
if BUILD_TESTS_DEFAULT
|
if BUILD_TESTS_DEFAULT
|
||||||
noinst_PROGRAMS = $(TESTS) $(TESTS_norun)
|
noinst_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
|
||||||
else
|
else
|
||||||
check_PROGRAMS = $(TESTS) $(TESTS_norun)
|
check_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
check-daemon:
|
||||||
|
$(MAKE) check TESTS="$(TESTS_daemon)"
|
||||||
|
|
||||||
mainloop_test_SOURCES = tests/mainloop-test.c
|
mainloop_test_SOURCES = tests/mainloop-test.c
|
||||||
mainloop_test_CFLAGS = $(AM_CFLAGS)
|
mainloop_test_CFLAGS = $(AM_CFLAGS)
|
||||||
mainloop_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
|
mainloop_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue