gir-repository r68 - trunk/gir
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gir-repository r68 - trunk/gir
- Date: Tue, 26 Aug 2008 22:31:26 +0000 (UTC)
Author: walters
Date: Tue Aug 26 22:31:26 2008
New Revision: 68
URL: http://svn.gnome.org/viewvc/gir-repository?rev=68&view=rev
Log:
2008-08-26 Colin Walters <walters verbum org>
* gir/Makefile.am (check-local): When testing, try to
round-trip .gir -> .typelib -> .xml -> .typelib.
In retrospect, this is an obvious test we should
have.
Modified:
trunk/gir/Makefile.am
Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am (original)
+++ trunk/gir/Makefile.am Tue Aug 26 22:31:26 2008
@@ -269,7 +269,6 @@
%.typelib: %.gir Makefile
$(DEBUG) $(G_IR_COMPILER) $(G_IR_COMPILER_OPTS) $< -o $@
- $(G_IR_GENERATE) $@ > $ tmp && mv $ tmp $ xml
%.typelib.gdb: %.gir Makefile
libtool --mode=execute gdb --args $(G_IR_COMPILER) $< -o $@
@@ -278,10 +277,11 @@
EXTRA_DIST += $(TESTS)
-%.gir.test: %.gir
- @echo Round-tripping $<
- $(DEBUG) $(G_IR_COMPILER) $< > $<.1; \
- $(DEBUG) $(G_IR_GENERATE) $<.1 > $<.2; \
- diff -u $< $<.2 | diffstat; rm $<.1 $<.2
-
-check-local: $(dist_gir_DATA:.gir=.gir.test)
+check-local: $(typelibs_DATA)
+ @for x in $(typelibs_DATA); do \
+ echo $$x; \
+ echo $(G_IR_GENERATE) $${x} > $${x}.tmp && mv $${x}.tmp $${x}.xml; \
+ $(G_IR_GENERATE) $${x} > $${x}.tmp && mv $${x}.tmp $${x}.xml; \
+ echo $(DEBUG) $(G_IR_COMPILER) $${x}.xml -o $${x}.xml.typelib; \
+ $(DEBUG) $(G_IR_COMPILER) $${x}.xml -o $${x}.xml.typelib; \
+ done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]