[glom] Tests: Check that the .glade files are valid XML.



commit 1b86a12df758e5737327230a1b922c2e8a47996d
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 16 03:32:44 2010 +0100

    Tests: Check that the .glade files are valid XML.
    
      * Makefile_tests.am:
    * tests/test_glade_file_validation.sh: Add this text that the .glade files
    are basically valid XML. It would be nice to have a Glade DTD to validate
    them against too.
    We should also check that each top-level widget can be instantiated by
    GtkBuilder.

 ChangeLog                                          |   11 +++++++++++
 Makefile_tests.am                                  |    6 ++++--
 ...e_validation.sh => test_dtd_file_validation.sh} |    0
 3 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 31a3e96..20d4e29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2010-03-16  Murray Cumming  <murrayc murrayc com>
 
+  Tests: Check that the .glade files are valid XML.
+  
+  * Makefile_tests.am:
+	* tests/test_glade_file_validation.sh: Add this text that the .glade files 
+	are basically valid XML. It would be nice to have a Glade DTD to validate 
+	them against too.
+	We should also check that each top-level widget can be instantiated by 
+	GtkBuilder.
+
+2010-03-16  Murray Cumming  <murrayc murrayc com>
+
   Add a startup script feature.
   
   * libglom/document/document.cc: Added get/set_startup_script().
diff --git a/Makefile_tests.am b/Makefile_tests.am
index 8c04660..b9e9e92 100644
--- a/Makefile_tests.am
+++ b/Makefile_tests.am
@@ -33,7 +33,8 @@ check_PROGRAMS =						\
 
 TESTS =	tests/test_parsing_time	\
 	tests/test_signal_reemit \
-        tests/dtd/test_file_validation.sh \
+  tests/test_dtd_file_validation.sh \
+  tests/test_glade_file_validation.sh \
 	tests/test_load_python_library \
 	tests/test_python_module \
 	tests/test_python_execute_func \
@@ -45,7 +46,8 @@ TESTS =	tests/test_parsing_time	\
 
 # We also set this in Makefile.am, with +=,
 # but this is the first use, where we must use =
-dist_noinst_SCRIPTS = tests/dtd/test_file_validation.sh
+dist_noinst_SCRIPTS = tests/test_dtd_file_validation.sh \
+	tests/test_glade_file_validation.sh
 
 #TESTS_ENVIRONMENT=which valgrind && valgrind --tool=memcheck --leak-check=full --leak-resolution=high --trace-children=yes --num-callers=30
 
diff --git a/tests/dtd/test_file_validation.sh b/tests/test_dtd_file_validation.sh
similarity index 100%
rename from tests/dtd/test_file_validation.sh
rename to tests/test_dtd_file_validation.sh



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