[xiph-commits] r13901 - trunk/xspf/testcase

sping at svn.xiph.org sping at svn.xiph.org
Sun Sep 23 23:34:04 PDT 2007


Author: sping
Date: 2007-09-23 23:34:04 -0700 (Sun, 23 Sep 2007)
New Revision: 13901

Modified:
   trunk/xspf/testcase/schema_test.sh
Log:
Online Validator (check.py) integrated


Modified: trunk/xspf/testcase/schema_test.sh
===================================================================
--- trunk/xspf/testcase/schema_test.sh	2007-09-24 04:58:45 UTC (rev 13900)
+++ trunk/xspf/testcase/schema_test.sh	2007-09-24 06:34:04 UTC (rev 13901)
@@ -34,6 +34,7 @@
 RNV=rnv
 XMLLINT=xmllint
 SPIFF_CHECK=spiff_check
+CHECK_PY=../../../websites/validator.xspf.org/check.py
 
 
 
@@ -52,6 +53,7 @@
 echo "xmllint #"`${XMLLINT} --version 2>&1 | grep version | sed -r "s/[^0-9]+//"` >> ${LOG_FILE}
 echo "XMLStarlet "`${XML_STARLET} --version` >> ${LOG_FILE}
 echo "spiff_check "`${SPIFF_CHECK} --version | sed -r "s/[^0-9]+//"` >> ${LOG_FILE}
+echo "check.py r"`svn info ${CHECK_PY} | grep "Revision:" | sed -r "s/Revision: (.+)/\1/"` >> ${LOG_FILE}
 echo "" >> ${LOG_FILE}
 
 
@@ -109,7 +111,7 @@
 for i in ${FAIL_0_FILES}; do
 	OUTPUT=`cat $i | ${SPIFF_CHECK} -`
 	if [ "${OUTPUT}" == "Valid XSPF-0." ]; then
-		echo $i
+		echo $i >> ${LOG_FILE}
 	fi
 done
 echo "" >> ${LOG_FILE}
@@ -118,13 +120,31 @@
 #for i in ${PASS_0_FILES}; do
 #	OUTPUT=`cat $i | ${SPIFF_CHECK} -`
 #	if [ "${OUTPUT}" != "Valid XSPF-0." ]; then
-#		echo $i
+#		echo $i >> ${LOG_FILE}
 #	fi
 #done
 echo "" >> ${LOG_FILE}
 
 
 
+echo "===== XSPF-0, without schema, check.py, should have failed =====" >> ${LOG_FILE}
+for i in ${FAIL_0_FILES}; do
+	if ${CHECK_PY} --shell $i &>/dev/null ; then
+		echo $i >> ${LOG_FILE}
+	fi
+done
+echo "" >> ${LOG_FILE}
+
+echo "===== XSPF-0, without schema, check.py, should have passed =====" >> ${LOG_FILE}
+#for i in ${PASS_0_FILES}; do
+#	if ! ${CHECK_PY} --shell $i &>/dev/null ; then
+#		echo $i >> ${LOG_FILE}
+#	fi
+#done
+echo "" >> ${LOG_FILE}
+
+
+
 echo "===== XSPF-1, Relax NG Compact, RNV, should have failed =====" >> ${LOG_FILE}
 for i in ${FAIL_1_FILES}; do
 	if ${RNV} ${RNC_1_FILE} $i &>/dev/null ; then
@@ -203,7 +223,7 @@
 for i in ${FAIL_1_FILES}; do
 	OUTPUT=`cat $i | ${SPIFF_CHECK} -`
 	if [ "${OUTPUT}" == "Valid XSPF-1." ]; then
-		echo $i
+		echo $i >> ${LOG_FILE}
 	fi
 done
 echo "" >> ${LOG_FILE}
@@ -212,14 +232,33 @@
 for i in ${PASS_1_FILES}; do
 	OUTPUT=`cat $i | ${SPIFF_CHECK} -`
 	if [ "${OUTPUT}" != "Valid XSPF-1." ]; then
-		echo $i
+		echo $i >> ${LOG_FILE}
 	fi
 done
 echo "" >> ${LOG_FILE}
 
 
 
+echo "===== XSPF-1, without schema, check.py, should have failed =====" >> ${LOG_FILE}
+for i in ${FAIL_1_FILES}; do
+	if ${CHECK_PY} --shell $i &>/dev/null ; then
+		echo $i >> ${LOG_FILE}
+	fi
+done
+echo "" >> ${LOG_FILE}
+
+echo "===== XSPF-1, without schema, check.py, should have passed =====" >> ${LOG_FILE}
+for i in ${PASS_1_FILES}; do
+	if ! ${CHECK_PY} --shell $i &>/dev/null ; then
+		echo $i >> ${LOG_FILE}
+	fi
+done
+echo "" >> ${LOG_FILE}
+
+
+
 # -----------------------------------------------------------------------------
 # Show log
 # -----------------------------------------------------------------------------
 cat ${LOG_FILE}
+



More information about the commits mailing list