tests: dist new tests
[gtk-doc.git] / tests / Makefile.am
blob7e23744b2613c12fec48bb503e8164792c84f2e7
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = gobject bugs annotations fail empty .
5 if BUILD_TESTS
7 TESTS = \
8   gtkdoc-common.t gtkdoc-fixxref.t gtkdoc-mkdb.t gtkdoc-rebase.t gtkdoc-scan.t \
9   tools.sh gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh
10 TESTS_ENVIRONMENT = \
11         BUILDDIR=$(abs_builddir) \
12         SRCDIR=$(abs_srcdir) \
13         ABS_TOP_BUILDDIR=$(abs_top_builddir) \
14         ABS_TOP_SRCDIR=$(abs_top_srcdir) \
15         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
16         PERL5LIB=$(abs_top_builddir):$(PERL5LIB)
18 endif
20 EXTRA_DIST = gtkdoctest.sh tools.sh sanity.sh \
21         gobject.sh bugs.sh annotations.sh fail.sh empty.sh \
22         gtkdoc-common.t gtkdoc-fixxref.t gtkdoc-mkdb.t gtkdoc-rebase.t gtkdoc-scan.t
25 # run any given test by running make <test>.check
26 %.check: %
27         @$(TESTS_ENVIRONMENT)   \
28         ./$*
30 snapshot:
31         @for dir in $(SUBDIRS); do \
32     rm -rf $$dir/docs/html.ref; \
33           if test -d $$dir/docs/html; then \
34       cp -r $$dir/docs/html $$dir/docs/html.ref; \
35     fi; \
36     rm -rf $$dir/docs/xml.ref; \
37           if test -d $$dir/docs/xml; then \
38       cp -r $$dir/docs/xml $$dir/docs/xml.ref; \
39     fi; \
40         done
42 .PHONY: snapshot
44 -include $(top_srcdir)/git.mk