fix tests to compare xml to xml instead of typelib to xml, and stop on
authorTommi Komulainen <tommi.komulainen@iki.fi>
Wed, 15 Oct 2008 22:08:53 +0000 (22:08 +0000)
committerTommi Komulainen <tko@src.gnome.org>
Wed, 15 Oct 2008 22:08:53 +0000 (22:08 +0000)
2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>

* tests/Makefile.am: fix tests to compare xml to xml instead of
typelib to xml, and stop on error

svn path=/trunk/; revision=719

ChangeLog
tests/Makefile.am

index 8b4a687..c7fa17e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
 
+       * tests/Makefile.am: fix tests to compare xml to xml instead of
+       typelib to xml, and stop on error
+
+2008-10-15  Tommi Komulainen  <tommi.komulainen@iki.fi>
+
        * tools/generate.c (write_type_name, write_type_info,
        write_type_info, write_object_info, write_object_info,
        write_interface_info, write_error_domain_info): reduce code
index 6f7fdb4..f5cbed3 100644 (file)
@@ -22,11 +22,13 @@ GIRTESTS =                  \
        object.gir.test         \
        struct.gir.test
 
+CLEANFILES = $(GIRTESTS:%.gir.test=%.1) $(GIRTESTS:%.gir.test=%.2)
+
 %.gir.test: %.gir Makefile
        @echo Testing $<:
-       $(DEBUG) $(top_builddir)/tools/g-ir-compiler --includedir=$(top_builddir)/gir $< > $*.1; \
-       $(DEBUG) $(top_builddir)/tools/g-ir-generate --includedir=$(top_builddir)/gir $*.1 > $*.2; \
-       diff -u $*.1 $*.2; rm $*.1 $*.2
+       $(DEBUG) $(top_builddir)/tools/g-ir-compiler --includedir=$(top_builddir)/gir $< > $*.1
+       $(DEBUG) $(top_builddir)/tools/g-ir-generate --includedir=$(top_builddir)/gir $*.1 > $*.2
+       diff -u $*.gir $*.2 && rm $*.1 $*.2
 
 
 check-local: $(GIRTESTS)