summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-08-28 09:03:58 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-08-28 09:03:58 -0500
commit89b788744aee0860bea793dee2b77a2279f9991c (patch)
tree161b13cccdab32af7d90d452b1acc0c8a21099df
parent0e8a9aee35ba4333c1521a23863d048801dbbcdd (diff)
downloadgtk-doc-89b788744aee0860bea793dee2b77a2279f9991c.tar.gz
Revert "tests: directly build the integration test modules"
This reverts commit b5e8087b420525bd6d86dee2653afda2fa0851db. This is super broken because it results in none of the subdirectories being distributed.
-rw-r--r--tests/Makefile.am9
-rwxr-xr-xtests/gtkdoctest.sh2
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c1d35af..3be6ce0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,5 +1,9 @@
## Process this file with automake to produce Makefile.in
+# we need to run '.' last so that sanity processes the generated docs
+# maybe move it to a subdir?
+SUBDIRS = annotations bugs empty fail gobject program repro .
+
if BUILD_TESTS
TESTS = \
@@ -23,6 +27,11 @@ endif
EXTRA_DIST = gtkdoctest.sh $(TESTS)
+# run any given test by running make <test>.check
+%.check: %
+ @$(TESTS_ENVIRONMENT) \
+ ./$*
+
snapshot:
@for dir in $(SUBDIRS); do \
rm -rf $$dir/docs/html.ref; \
diff --git a/tests/gtkdoctest.sh b/tests/gtkdoctest.sh
index db31cb6..cf52bd9 100755
--- a/tests/gtkdoctest.sh
+++ b/tests/gtkdoctest.sh
@@ -3,7 +3,5 @@
suite=$1
dir=`dirname $0`
-make -C $dir/$suite/docs/ clean check
-
cd $dir/$suite/docs && \
env BUILDDIR=$BUILDDIR/$suite/docs SRCDIR=$SRCDIR/$suite/docs gtkdoc-check