diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 8 | ||||
-rw-r--r-- | tests/extended.gir | 17 |
2 files changed, 23 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index d77e4939..3da1c30f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,6 +6,7 @@ EXTRA_DIST = \ constant.gir \ enum.gir \ errors.gir \ + extended.gir \ function.gir \ interface.gir \ object.gir \ @@ -22,7 +23,10 @@ GIRTESTS = \ object.gir.test \ struct.gir.test -CLEANFILES = $(GIRTESTS:%.gir.test=%.1) $(GIRTESTS:%.gir.test=%.2) +CLEANFILES = $(GIRTESTS:%.gir.test=%.1) $(GIRTESTS:%.gir.test=%.2) extended.gir.test + +extended.gir.test: extended.gir Makefile + $(DEBUG) $(top_builddir)/tools/g-ir-compiler --includedir=$(top_builddir)/gir extended.gir -o extended.gir.test %.gir.test: %.gir Makefile @echo Testing $<: @@ -31,7 +35,7 @@ CLEANFILES = $(GIRTESTS:%.gir.test=%.1) $(GIRTESTS:%.gir.test=%.2) diff -u $(srcdir)/$*.gir $*.2 && rm $*.1 $*.2 -check-local: $(GIRTESTS) +check-local: $(GIRTESTS) extended.gir.test @echo Running PEP8 on Python sources @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat @echo Running Pyflakes on Python sources diff --git a/tests/extended.gir b/tests/extended.gir new file mode 100644 index 00000000..fadb4867 --- /dev/null +++ b/tests/extended.gir @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<repository version="1.0" + xmlns="http://www.gtk.org/introspection/core/1.0" + xmlns:c="http://www.gtk.org/introspection/c/1.0" + xmlns:glib="http://www.gtk.org/introspection/glib/1.0"> + <include name="GObject" version="2.0"/> + <foofoo></foofoo> + <namespace name="extended" version="1.0"> + <frob> + <bar> + </bar> + </frob> + <constant name="KEY_FROB" value="31"> + <type name="int"/> + </constant> + </namespace> +</repository> |