- OUT1=${srcdir}/test_http_${testno}.res
- OUT2=${srcdir}/test_http_${testno}.log
- DIFF=${srcdir}/test_http_${testno}.dif
- if test -f $OUT1; then
- rm -f $OUT2
- wget -q -O $OUT2 $f
- if diff $OUT1 $OUT2 >$DIFF; then
- :
+ if echo $f | grep '^http' >/dev/null; then
+ OUT1=${srcdir}/test_http_${testno}.res
+ OUT2=test_http_${testno}.log
+ DIFF=test_http_${testno}.dif
+ if test -f $OUT1; then
+ rm -f $OUT2
+ if test -n "${wget}"; then
+ ${wget} -q -O $OUT2 $f
+ elif test -n "${lynx}"; then
+ ${lynx} -dump $f >$OUT2
+ else
+ break
+ fi
+ if diff $OUT1 $OUT2 >$DIFF; then
+ :
+ else
+ echo "Test $testno: Failed. See $OUT1, $OUT2 and $DIFF"
+ code=1
+ fi