tests: Add playlist/youtube.mk
[libquvi-scripts.git] / tests / Makefile.am
blobd516b5a6c40ccc59b3134490aa1a10ed017aee61
1 SUBDIRS=lib
2 noinst_PROGRAMS=$(TEST_PROGS)
4 TEST_PROGS=
5 TEST_OPTS=-k -m=thorough --verbose #--g-fatal-warnings
7 testsuite_cppflags=\
8   -I$(top_srcdir)/tests/lib\
9   $(libquvi_CFLAGS) $(libcurl_CFLAGS) $(glib_CFLAGS)\
10   $(AM_CPPFLAGS)
12 testsuite_ldflags=\
13   $(AM_LDFLAGS)
15 testsuite_ldadd=\
16   $(top_builddir)/tests/lib/libconvenience_test.la\
17   $(libquvi_LIBS) $(libcurl_LIBS) $(glib_LIBS)
19 include $(top_srcdir)/tests/media/tests.mk
20 include $(top_srcdir)/tests/playlist/tests.mk
22 test: all
23         @ok=1; for t in $(TEST_PROGS); do \
24                 LIBQUVI_SCRIPTS_DIR=$(top_srcdir)/share/ \
25                         gtester $(TEST_OPTS) $(top_builddir)/tests/$$t -o $$t.xml \
26                 || { \
27                         echo NOTE: Check $(abs_builddir)/$$t.xml for details; \
28                         ok=; gtester-report $$t.xml >$$t.html; \
29                 } \
30         done; \
31         if test -z "$$ok"; then exit 1; fi
33 clean-local:
34         @for t in $(TEST_PROGS); do rm -f $$t.xml $$t.html; done
36 EXTRA_DIST=README