tests: make 'check' optional

This commit is contained in:
Deng Zhengrong 2012-08-13 15:34:05 +08:00 committed by Tanu Kaskinen
parent ba0203c4c0
commit 67602d8743
2 changed files with 29 additions and 2 deletions

View file

@ -297,6 +297,7 @@ TESTS_norun += \
alsa-time-test
endif
if HAVE_TESTS
TESTS_ENVIRONMENT=MAKE_CHECK=1
TESTS = $(TESTS_default)
@ -309,6 +310,19 @@ endif
check-daemon: $(TESTS_daemon)
PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon)
else
TESTS_ENVIRONMENT=
TESTS =
noinst_PROGRAMS =
check_PROGRAMS =
check-daemon:
@echo "Tests are disabled!"
@echo "Pass option \"--enable-tests\" to configure and install \"check\" library properly!"
false
endif
mainloop_test_SOURCES = tests/mainloop-test.c
mainloop_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
mainloop_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la