projects
/
pazpar2-moved-to-github.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fb5e2a08239bd93d6aab8765e43210e08584dfc0
[pazpar2-moved-to-github.git]
/
test
/
test_tmarc.sh
1
#!/bin/sh
2
res=0
3
for m in tmarc?.xml; do
4
b=`basename $m .xml`
5
l=$b.log.xml
6
r=$b.res.xml
7
d=$b.dif
8
xsltproc ../etc/tmarc.xsl $m >$l
9
if test -f $r; then
10
if diff $l $r >$d; then
11
echo "$b: OK"
12
rm $d
13
else
14
echo "$b: FAIL; check $d"
15
res=1
16
fi
17
else
18
echo "$b: making $r for the first time"
19
mv $l $r
20
res=1
21
fi
22
done
23
exit $res