gir-repository r58 - in trunk: . gir
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gir-repository r58 - in trunk: . gir
- Date: Fri, 22 Aug 2008 14:44:46 +0000 (UTC)
Author: walters
Date: Fri Aug 22 14:44:45 2008
New Revision: 58
URL: http://svn.gnome.org/viewvc/gir-repository?rev=58&view=rev
Log:
2008-08-22 Colin Walters <walters verbum org>
* configure.ac:
* gir/Makefile.am (%.gir.test): Add round-trip tests.
Modified:
trunk/ChangeLog
trunk/configure.ac
trunk/gir/Makefile.am
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Aug 22 14:44:45 2008
@@ -16,6 +16,10 @@
G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
AC_SUBST(G_IR_COMPILER)
+G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
+AC_SUBST(G_IR_GENERATE)
+
+
GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
AC_SUBST(GIRDIR)
Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am (original)
+++ trunk/gir/Makefile.am Fri Aug 22 14:44:45 2008
@@ -294,4 +294,12 @@
TESTS = tests.py
-EXTRA_DIST += $(TESTS)
\ No newline at end of file
+EXTRA_DIST += $(TESTS)
+
+%.gir.test: %.gir
+ @echo Round-tripping $<
+ $(DEBUG) $(G_IR_COMPILER) --raw $< > $<.1; \
+ $(DEBUG) $(G_IR_GENERATE) --raw $<.1 > $<.2; \
+ diff -u $< $<.2 | diffstat; rm $<.1 $<.2
+
+check-local: $(dist_gir_DATA:.gir=.gir.test)
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]