doc: Add asciidoc.conf
[libquvi-scripts.git] / tests / Makefile.am
blob4a816139be30f16ca8aacdf17c427b19bd5460aa
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/playlist/tests.mk
20 include $(top_srcdir)/tests/subtitle/tests.mk
21 include $(top_srcdir)/tests/media/tests.mk
22 include $(top_srcdir)/tests/scan/tests.mk
24 test: all
25         @ok=1; for t in $(TEST_PROGS); do \
26                 LIBQUVI_SCRIPTS_DIR=$(top_srcdir)/share/ \
27                         gtester $(TEST_OPTS) $(top_builddir)/tests/$$t -o $$t.xml \
28                 || { \
29                         echo NOTE: Check $(abs_builddir)/$$t.xml for details; \
30                         ok=; gtester-report $$t.xml >$$t.html; \
31                 } \
32         done; \
33         if test -z "$$ok"; then exit 1; fi
35 clean-local:
36         @for t in $(TEST_PROGS); do rm -f $$t.xml $$t.html; done
38 EXTRA_DIST=find_tests.sh run_tests.sh