build: run some tests during make check (and distcheck)
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Thu, 8 Jan 2009 15:19:20 +0000 (17:19 +0200)
committerMarc-André Lureau <marcandre.lureau@gmail.com>
Thu, 8 Jan 2009 15:21:10 +0000 (17:21 +0200)
Run simple core tests during 'check'.

I plan to add more automated tests, including pulseaudio instances. I
did some for maemo, they still need some love.

Note: it would be funky to enable Automake 'color-tests' option when
this will be released (1.10.2 and from automake git)

src/Makefile.am

index 1f63490..e4ec488 100644 (file)
@@ -219,6 +219,35 @@ pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
 #         Test programs           #
 ###################################
 
+# missing: mcalign-test flist-test pacat-simple parec-simple sync-playback rtstutter stripnul interpol-test thread-test
+
+TESTS = \
+               mainloop-test \
+               strlist-test \
+               close-test \
+               voltest \
+               memblockq-test \
+               channelmap-test \
+               thread-mainloop-test \
+               utf8-test \
+               get-binary-name-test \
+               ipacl-test \
+               hook-list-test \
+               memblock-test \
+               asyncq-test \
+               asyncmsgq-test \
+               queue-test \
+               rtpoll-test \
+               sig2str-test \
+               resampler-test \
+               smoother-test \
+               mix-test \
+               remix-test \
+               envelope-test \
+               proplist-test \
+               lock-autospawn-test \
+               prioq-test
+
 noinst_PROGRAMS = \
                mainloop-test \
                mcalign-test \
@@ -256,12 +285,17 @@ noinst_PROGRAMS = \
                prioq-test
 
 if HAVE_SIGXCPU
+#TESTS += \
+#              cpulimit-test \
+#              cpulimit-test2
 noinst_PROGRAMS += \
                cpulimit-test \
                cpulimit-test2
 endif
 
 if HAVE_GLIB20
+TESTS += \
+               mainloop-test-glib
 noinst_PROGRAMS += \
                mainloop-test-glib
 endif