[glom] Tests: Add general XML validity of XSLT files.



commit cd06add69658a93457001f193d6fc711f4aed26a
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 17 17:15:06 2011 +0200

    Tests: Add general XML validity of XSLT files.
    
    * tests/test_xslt_file_validation.sh: New test, based on the other ones.
    * Makefile_tests.am: Mention the new test.

 ChangeLog                          |    7 +++++++
 Makefile_tests.am                  |    2 ++
 tests/test_xslt_file_validation.sh |    8 ++++++++
 3 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4a8efad..3a006e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-10-17  Murray Cumming  <murrayc murrayc com>
 
+	Tests: Add general XML validity of XSLT files.
+
+	* tests/test_xslt_file_validation.sh: New test, based on the other ones.
+	* Makefile_tests.am: Mention the new test.
+
+2011-10-17  Murray Cumming  <murrayc murrayc com>
+
 	Remove an unused XSL file.
 
 	* xslt/print_details_to_html.xsl: Remove this because it is no longer
diff --git a/Makefile_tests.am b/Makefile_tests.am
index aef4123..292d1d0 100644
--- a/Makefile_tests.am
+++ b/Makefile_tests.am
@@ -36,6 +36,7 @@ TESTS =	tests/test_document_load	\
 	tests/test_signal_reemit \
 	tests/test_dtd_file_validation.sh \
 	tests/test_glade_file_validation.sh \
+	tests/test_xslt_file_validation.sh \
 	tests/python/test_load_python_library \
 	tests/python/test_python_module \
 	tests/test_selfhosting_new_empty \
@@ -47,6 +48,7 @@ TESTS =	tests/test_document_load	\
 # but this is the first use, where we must use =
 dist_noinst_SCRIPTS = tests/test_dtd_file_validation.sh \
 	tests/test_glade_file_validation.sh \
+	tests/test_xslt_file_validation.sh \
 	tests/test_glade_toplevels_instantiation.sh
 
 #TESTS_ENVIRONMENT=which valgrind && valgrind --tool=memcheck --leak-check=full --leak-resolution=high --trace-children=yes --num-callers=30
diff --git a/tests/test_xslt_file_validation.sh b/tests/test_xslt_file_validation.sh
new file mode 100755
index 0000000..773d38d
--- /dev/null
+++ b/tests/test_xslt_file_validation.sh
@@ -0,0 +1,8 @@
+#/bin/sh -e
+
+for x in $(find ${srcdir}/examples/ -name "*.glom")
+do
+  # echo Validating $x
+  # Note that there is no DTD for XSL because DTD is not capable enough.
+  xmllint --noout $x || exit 1
+done



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