FIX: tests: Unset ok flag (see also 852c871)
[libquvi-scripts.git] / tests / Makefile.am
blob62b8f21e5f1eb7278e15488b673d7829027ab678
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_EXCLUSIVE_SCRIPTS_DIR=1 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; ok=; \
30                 } \
31         done; \
32         if test -z "$$ok"; then exit 1; fi
34 clean-local:
35         @for t in $(TEST_PROGS); do rm -f $$t.xml $$t.html; done
37 EXTRA_DIST=find_tests.sh run_tests.sh