tests: enable to test standalone pulseaudio daemon

With this fix, `check-daemon` doesn't need a system-wide running pulseaudio
anymore.

The method to use is to invoke `make check-daemon` under `src/` and it just
works! :)
This commit is contained in:
Deng Zhengrong 2012-07-23 13:12:46 +08:00 committed by Arun Raghavan
parent 89a6fd740f
commit 84ffc41bfb
2 changed files with 73 additions and 3 deletions

View file

@ -303,11 +303,11 @@ TESTS = $(TESTS_default)
if BUILD_TESTS_DEFAULT
noinst_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
else
check_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
check_PROGRAMS = $(TESTS_default) $(TESTS_norun)
endif
check-daemon:
$(MAKE) check TESTS="$(TESTS_daemon)"
check-daemon: $(TESTS_daemon)
PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon)
mainloop_test_SOURCES = tests/mainloop-test.c
mainloop_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)