README: Add aptitude examples
[libquvi-scripts.git] / tests / Makefile.am
blobafe980aaae189d21b84b8e70e90518d66cba6f93
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/media/tests.mk
21 include $(top_srcdir)/tests/scan/tests.mk
23 test: all
24         @ok=1; for t in $(TEST_PROGS); do \
25                 LIBQUVI_SCRIPTS_DIR=$(top_srcdir)/share/ \
26                         gtester $(TEST_OPTS) $(top_builddir)/tests/$$t -o $$t.xml \
27                 || { \
28                         echo NOTE: Check $(abs_builddir)/$$t.xml for details; \
29                         ok=; gtester-report $$t.xml >$$t.html; \
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