[glib] GSettings-related distcheck fixups



commit d352ec2bf383754f352fc7cbfb7a48918cc0d9ea
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Jun 17 10:50:47 2010 -0400

    GSettings-related distcheck fixups

 gio/tests/Makefile.am |   92 ++++++++++++++++++++++++++++++------------------
 gio/tests/gsettings.c |    6 ++-
 2 files changed, 61 insertions(+), 37 deletions(-)
---
diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am
index aaad1c1..ebe6f21 100644
--- a/gio/tests/Makefile.am
+++ b/gio/tests/Makefile.am
@@ -272,41 +272,66 @@ testapp_LDADD   = $(progs_ldadd)
 testapps_SOURCES = testapps.c gdbus-sessionbus.c gdbus-sessionbus.h
 testapps_LDADD   = $(progs_ldadd)
 
+schema_tests = \
+	schema-tests/array-default-not-in-choices.gschema.xml		\
+	schema-tests/bad-choice.gschema.xml				\
+	schema-tests/bad-key.gschema.xml				\
+	schema-tests/bad-key2.gschema.xml				\
+	schema-tests/bad-key3.gschema.xml				\
+	schema-tests/bad-key4.gschema.xml				\
+	schema-tests/bad-type.gschema.xml				\
+	schema-tests/bare-alias.gschema.xml				\
+	schema-tests/choice-alias.gschema.xml				\
+	schema-tests/choice-bad.gschema.xml				\
+	schema-tests/choice-badtype.gschema.xml				\
+	schema-tests/choice-invalid-alias.gschema.xml			\
+	schema-tests/choice-missing-value.gschema.xml			\
+	schema-tests/choice-shadowed-alias.gschema.xml			\
+	schema-tests/choice-upside-down.gschema.xml			\
+	schema-tests/choice.gschema.xml					\
+	schema-tests/choices-wrong-type.gschema.xml			\
+	schema-tests/default-in-aliases.gschema.xml			\
+	schema-tests/default-not-in-choices.gschema.xml			\
+	schema-tests/default-out-of-range.gschema.xml			\
+	schema-tests/empty-key.gschema.xml				\
+	schema-tests/enum-with-aliases.gschema.xml			\
+	schema-tests/enum-with-bad-default.gschema.xml			\
+	schema-tests/enum-with-chained-alias.gschema.xml		\
+	schema-tests/enum-with-choice.gschema.xml			\
+	schema-tests/enum-with-invalid-alias.gschema.xml		\
+	schema-tests/enum-with-repeated-alias.gschema.xml		\
+	schema-tests/enum-with-shadow-alias.gschema.xml			\
+	schema-tests/enum.gschema.xml					\
+	schema-tests/incomplete-list.gschema.xml			\
+	schema-tests/invalid-path.gschema.xml				\
+	schema-tests/missing-quotes.gschema.xml				\
+	schema-tests/no-default.gschema.xml				\
+	schema-tests/overflow.gschema.xml				\
+	schema-tests/range-badtype.gschema.xml				\
+	schema-tests/range-default-high.gschema.xml			\
+	schema-tests/range-default-low.gschema.xml			\
+	schema-tests/range-high-default.gschema.xml			\
+	schema-tests/range-low-default.gschema.xml			\
+	schema-tests/range-missing-max.gschema.xml			\
+	schema-tests/range-missing-min.gschema.xml			\
+	schema-tests/range-parse-error.gschema.xml			\
+	schema-tests/range-wrong-type.gschema.xml			\
+	schema-tests/range.gschema.xml					\
+	schema-tests/wrong-category.gschema.xml
+
+
 EXTRA_DIST += \
-	socket-common.c						\
-	org.gtk.test.gschema					\
-	org.gtk.test.gschema.xml				\
-	de.po							\
-	schema-tests/bad-type.gschema.xml			\
-	schema-tests/incomplete-list.gschema.xml		\
-	schema-tests/missing-quotes.gschema.xml			\
-	schema-tests/no-default.gschema.xml			\
-	schema-tests/wrong-category.gschema.xml			\
-	schema-tests/overflow.gschema.xml			\
-	schema-tests/bad-key.gschema.xml			\
-	schema-tests/bad-key2.gschema.xml			\
-	schema-tests/bad-key3.gschema.xml			\
-	schema-tests/bad-key4.gschema.xml			\
-	schema-tests/empty-key.gschema.xml			\
-	schema-tests/array-default-not-in-choices.gschema.xml	\
-	schema-tests/bad-type.gschema.xml			\
-	schema-tests/choice-missing-value.gschema.xml		\
-	schema-tests/choices-wrong-type.gschema.xml		\
-	schema-tests/default-not-in-choices.gschema.xml		\
-	schema-tests/default-out-of-range.gschema.xml		\
-	schema-tests/incomplete-list.gschema.xml		\
-	schema-tests/missing-quotes.gschema.xml			\
-	schema-tests/no-default.gschema.xml			\
-	schema-tests/overflow.gschema.xml			\
-	schema-tests/range-missing-max.gschema.xml		\
-	schema-tests/range-missing-min.gschema.xml		\
-	schema-tests/range-wrong-type.gschema.xml		\
-	schema-tests/wrong-category.gschema.xml 		\
-	schema-tests/invalid-path.gschema.xml 			\
-	appinfo-test.desktop					\
+	socket-common.c			\
+	org.gtk.test.gschema		\
+	org.gtk.test.gschema.xml	\
+	testenum.h			\
+	enums.xml.template		\
+	de.po				\
+	$(schema_tests)			\
+	appinfo-test.desktop		\
 	gdbus-testserver.py
  
-MISC_STUFF = gschemas.compiled test.mo
+MISC_STUFF = test.mo
 
 test.mo: de.po
 	$(MSGFMT) -o test.mo $(srcdir)/de.po; \
@@ -319,9 +344,6 @@ else
   glib_compile_schemas=$(top_builddir)/gio/glib-compile-schemas
 endif
 
-gschemas.compiled:
-	$(glib_compile_schemas) --targetdir=$(abs_builddir) $(srcdir)
-
 DISTCLEANFILES =                                        \
 	applications/mimeinfo.cache                     \
 	de/LC_MESSAGES/test.mo                          \
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index 8f014c7..e18e217 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -1335,14 +1335,16 @@ main (int argc, char *argv[])
 
   g_remove ("org.gtk.test.enums.xml");
   g_assert (g_spawn_command_line_sync ("../../gobject/glib-mkenums "
-                                       "--template enums.xml.template "
+                                       "--template " SRCDIR "/enums.xml.template "
                                        SRCDIR "/testenum.h",
                                        &enums, NULL, &result, NULL));
   g_assert (result == 0);
   g_assert (g_file_set_contents ("org.gtk.test.enums.xml", enums, -1, NULL));
 
   g_remove ("gschemas.compiled");
-  g_assert (g_spawn_command_line_sync ("../glib-compile-schemas --targetdir=. " SRCDIR,
+  g_assert (g_spawn_command_line_sync ("../glib-compile-schemas --targetdir=. "
+                                       "--schema-file=org.gtk.test.enums.xml "
+                                       "--schema-file=" SRCDIR "/org.gtk.test.gschema.xml",
                                        NULL, NULL, &result, NULL));
   g_assert (result == 0);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]