mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-23 06:59:53 -05:00
tests: make 'check' optional
This commit is contained in:
parent
ba0203c4c0
commit
67602d8743
2 changed files with 29 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue