Remove pornhub.lua
[quvi.git] / tests / Makefile.am
blob677e3f4c5f39aa911c79b90155f59d569e525116
2 TESTS_T = \
3 t/format_default_nonhttp.t \
4 t/mem.t \
5 t/nosupport.t \
6 t/redirect.t \
7 t/format_default.t \
8 t/format_other.t \
9 t/shortened.t
11 TESTS_D_T = t/d/url.t
12 TESTS_POD_T = t/pod.t
14 TESTS_LIB = lib/Test/Quvi.pm
16 JSON = data
18 EXTRA_DIST = \
19  $(README) $(TESTS_LIB) \
20  $(TESTS_T) $(TESTS_NSFW_T) $(TESTS_D_T) $(TESTS_POD_T) \
21  $(JSON)
24 PROVE_OPTS_COMMON = --nocolor
26 # Options for those tests that use Test::Quvi.
28 PROVE_OPTS = -I $(top_srcdir)/tests/lib/
29 PROVE_OPTS += $(PROVE_OPTS_COMMON)
31 TESTQUVI_OPTS = \
32  -q $(top_builddir)/src/quvi/quvi \
33  -d $(top_srcdir)/tests \
34  -b $(top_srcdir)/share
36 if HAVE_VALGRIND
37 TESTQUVI_OPTS += -v $(VALGRIND)
38 endif
40 if ENABLE_TODO
41 TESTQUVI_OPTS += --todo
42 endif
44 if ENABLE_NLFY
45 TESTQUVI_OPTS += --nlfy
46 endif
48 if ENABLE_NSFW
49 TESTQUVI_OPTS += --nsfw
50 endif
52 # Options for those tests that *do not* use Test::Quvi.
54 # t/pod.t: GetOptions accepts a different (from those used in
55 # Test::Quvi) set of options.
56 PROVE_OPTS_POD = $(PROVE_OPTS_COMMON)
58 TESTQUVI_OPTS_POD = -p $(top_srcdir)/doc/man1
60 test: all
61         @verbose=; test -n "$$TEST_VERBOSE" && verbose=-v; \
62         ok=1; for t in $(TESTS_T); do \
63                 ( $(PROVE) $$verbose $(PROVE_OPTS) $(top_srcdir)/tests/$$t \
64                 :: $(TESTQUVI_OPTS) ) || ok=; \
65         done; \
66         for t in $(TESTS_POD_T); do \
67                 ( $(PROVE) $$verbose $(PROVE_OPTS_POD) $(top_srcdir)/tests/$$t \
68                 :: $(TESTQUVI_OPTS_POD) ) || ok=; \
69         done; \
70         if test -z "$$ok"; then exit 1; fi