2 noinst_PROGRAMS=$(TEST_PROGS)
4 TEST_OPTS=-k -m=thorough --verbose #--g-fatal-warnings
6 testsuite_common_cppflags=\
7 -I$(top_srcdir)/tests/lib\
8 -I$(top_srcdir)/src/quvi-0.9/\
13 testsuite_common_ldflags=\
16 testsuite_common_ldadd=\
17 $(top_builddir)/tests/lib/libconvenience_test.la\
18 $(top_builddir)/src/libquvi-0.9.la
22 script_SOURCES=script.c
23 script_CPPFLAGS=$(testsuite_common_cppflags)
24 script_LDFLAGS=$(testsuite_common_ldflags)
25 script_LDADD=$(testsuite_common_ldadd)
26 script_CFLAGS=$(AM_CFLAGS)
31 quvi_CPPFLAGS=$(testsuite_common_cppflags)
32 quvi_LDFLAGS=$(testsuite_common_ldflags)
33 quvi_LDADD=$(testsuite_common_ldadd)
34 quvi_CFLAGS=$(AM_CFLAGS)
40 playlist_SOURCES=playlist.c
41 playlist_CPPFLAGS=$(testsuite_common_cppflags)
42 playlist_LDFLAGS=$(testsuite_common_ldflags)
43 playlist_LDADD=$(testsuite_common_ldadd)
44 playlist_CFLAGS=$(AM_CFLAGS)
48 supports_SOURCES=supports.c
49 supports_CPPFLAGS=$(testsuite_common_cppflags)
50 supports_LDFLAGS=$(testsuite_common_ldflags)
51 supports_LDADD=$(testsuite_common_ldadd)
52 supports_CFLAGS=$(AM_CFLAGS)
56 resolve_SOURCES=resolve.c
57 resolve_CPPFLAGS=$(testsuite_common_cppflags)
58 resolve_LDFLAGS=$(testsuite_common_ldflags)
59 resolve_LDADD=$(testsuite_common_ldadd)
60 resolve_CFLAGS=$(AM_CFLAGS)
65 media_CPPFLAGS=$(testsuite_common_cppflags)
66 media_CFLAGS=$(AM_CFLAGS)
67 media_LDFLAGS=$(testsuite_common_ldflags)
68 media_LDADD=$(testsuite_common_ldadd)
73 scan_CPPFLAGS=$(testsuite_common_cppflags)
74 scan_LDFLAGS=$(testsuite_common_ldflags)
75 scan_LDADD=$(testsuite_common_ldadd)
76 scan_CFLAGS=$(AM_CFLAGS)
81 goto_CPPFLAGS=$(testsuite_common_cppflags)
82 goto_LDFLAGS=$(testsuite_common_ldflags)
83 goto_LDADD=$(testsuite_common_ldadd)
84 goto_CFLAGS=$(AM_CFLAGS)
88 verify_SOURCES=verify.c
89 verify_CPPFLAGS=$(testsuite_common_cppflags)
90 verify_LDFLAGS=$(testsuite_common_ldflags)
91 verify_LDADD=$(testsuite_common_ldadd)
92 verify_CFLAGS=$(AM_CFLAGS)
95 @ok=1; for t in $(TEST_PROGS); do \
96 gtester $(TEST_OPTS) $(top_builddir)/tests/$$t -o $$t.xml \
98 echo NOTE: Check $(abs_builddir)/$$t.xml for details; \
99 ok=; gtester-report $$t.xml >$$t.html; \
102 if test -z "$$ok"; then exit 1; fi
105 VG_OPTS=-q --tool=memcheck --leak-check=full\
106 --leak-resolution=high --num-callers=20\
107 --track-origins=yes --error-exitcode=1
112 @ok=1; for t in $(TEST_PROGS); do \
113 f=$(top_builddir)/tests/$$t; \
115 G_SLICE=always-malloc G_DEBUG=gc-friendly \
116 libtool --mode=execute $(VALGRIND) $(VG_OPTS) --log-file=$$l $$f \
118 ok=; echo "LEAK detected in $$f. Check $$l for details."; \
121 if test -z "$$ok"; then exit 1; fi
123 @echo configure did not find valgrind
127 @for t in $(TEST_PROGS); do rm -f $$t.xml $$t.html $$t.vgdump; done
129 EXTRA_DIST=find_tests.sh run_tests.sh