summaryrefslogtreecommitdiff
path: root/tests/doctool/Makefile.am
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-08-14 11:10:14 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-08-14 11:12:28 +0200
commit21a8a702c46968d40cfc99a5b57f9801568eda21 (patch)
tree2b13e68d7069594097ab54c10bb468ab8e876ab7 /tests/doctool/Makefile.am
parent736924a8ed80b6d8ef14f342abf3440a8e9c9541 (diff)
downloadgobject-introspection-21a8a702c46968d40cfc99a5b57f9801568eda21.tar.gz
g-ir-doc-tool: Add -expected test for Python docbook
Diffstat (limited to 'tests/doctool/Makefile.am')
-rw-r--r--tests/doctool/Makefile.am18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/doctool/Makefile.am b/tests/doctool/Makefile.am
index 1552930a..46e54beb 100644
--- a/tests/doctool/Makefile.am
+++ b/tests/doctool/Makefile.am
@@ -4,17 +4,23 @@ GIRepository-2.0.gir:
cp ../../GIRepository-2.0.gir .
GIRS = GIRepository-2.0.gir
-CHECKXML = $(GIRS:.gir=.xml.check)
+CHECKXML = $(GIRS:.gir=-C.xml.check) $(GIRS:.gir=-Python.xml.check)
DOCBOOKFILES = $(GIRS:.gir=.xml)
EXPECTEDDOCBOOKFILES = $(DOCBOOKFILES:.xml=-expected.xml)
CLEANFILES = $(DOCBOOK_FILES)
BUILT_SOURCES = $(DOCBOOK_FILES)
EXTRA_DIST = $(EXPECTEDDOCBOOKFILES)
-%.xml: %.gir
- $(INTROSPECTION_DOCTOOL) $*.gir -o $*.xml && echo " GEN $*.xml"
+%-C.xml: %.gir
+ $(INTROSPECTION_DOCTOOL) --language C $*.gir -o $*-C.xml && echo " GEN $*-C.xml"
-%.xml.check: %.xml
- @diff -u -U 10 $(srcdir)/$*-expected.xml $*.xml && echo " TEST $*.xml"
+%-Python.xml: %.gir
+ $(INTROSPECTION_DOCTOOL) --language Python $*.gir -o $*-Python.xml && echo " GEN $*-Python.xml"
-check-local: $(CHECKXML) $(TYPELIBS)
+%-C.xml.check: %-C.xml
+ @diff -u -U 10 $(srcdir)/$*-C-expected.xml $*-C.xml && echo " TEST $*-C.xml"
+
+%-Python.xml.check: %-Python.xml
+ @diff -u -U 10 $(srcdir)/$*-Python-expected.xml $*-Python.xml && echo " TEST $*-Python.xml"
+
+check-local: $(CHECKXML)