tidy-html5/test/testxml.sh

28 lines
576 B
Bash
Raw Normal View History

2011-11-17 02:44:16 +00:00
#! /bin/sh
#
# testxml.sh - execute all XML testcases
#
# (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
# See tidy.c for the copyright notice.
#
2015-02-13 11:19:51 +00:00
# <URL:http://www.html-tidy.org/>
2011-11-17 02:44:16 +00:00
#
# set -x
VERSION='$Id'
BUGS="427837 431956 433604 433607 433670 434100\
480406 480701 500236 503436 537604 616744 640474 646946"
while read bugNo expected
do
# echo Testing $bugNo | tee -a testxml.log
./testone.sh "$bugNo" "$expected" "$@" | tee -a testxml.log
if test -f "./tmp/out_$bugNo.html"
then
mv "./tmp/out_$bugNo.html" "./tmp/out_$bugNo.xml"
fi
done < xmlcases.txt