TESTS = $(check_SCRIPTS)
-check_SCRIPTS = test_tmarc.sh
+check_SCRIPTS = test_xsl.sh
dist-hook:
cp ${srcdir}/*.xml $(distdir)
cp ${srcdir}/*.xsl $(distdir)
-
+
+++ /dev/null
-#!/bin/sh
-res=0
-for m in tmarc?.xml; do
- b=`basename $m .xml`
- l=$b.log.xml
- r=$b.res.xml
- d=$b.dif
- xsltproc tmarc.xsl $m >$l
- if test -f $r; then
- if diff $l $r >$d; then
- rm $d
- else
- echo "$b: FAIL; check $d"
- res=1
- fi
- else
- echo "$b: making $r for the first time"
- mv $l $r
- res=1
- fi
-done
-exit $res
--- /dev/null
+#!/bin/sh
+res=0
+for x in *.xsl; do
+ t=`basename $x .xsl`
+ if test ! -f ${t}1.xml; then
+ continue
+ fi
+ echo "$t"
+ for m in ${t}?.xml; do
+ b=`basename $m .xml`
+ l=$b.log.xml
+ r=$b.res.xml
+ d=$b.dif
+ xsltproc $x $m >$l
+ if test -f $r; then
+ if diff $l $r >$d; then
+ rm $d
+ else
+ echo "$b: FAIL; check $d"
+ res=1
+ fi
+ else
+ echo "$b: making $r for the first time"
+ mv $l $r
+ res=1
+ fi
+ done
+done
+exit $res