summaryrefslogtreecommitdiffstats
path: root/regress/regress.sh
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2010-05-16 18:02:11 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2010-05-16 18:02:11 +0000
commit49cfaaa4db05243fdd74b3b6deb9aba06bf2402f (patch)
treee20249544aeb2426abc7fba22077affc3d5e23f6 /regress/regress.sh
parentd5098afb2c3e5356a30dd0555efbdb18a6af305c (diff)
downloadmandoc-49cfaaa4db05243fdd74b3b6deb9aba06bf2402f.tar.gz
Skip first line when comparing output.
Diffstat (limited to 'regress/regress.sh')
-rwxr-xr-xregress/regress.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/regress.sh b/regress/regress.sh
index 1a65ad0d..9a98c498 100755
--- a/regress/regress.sh
+++ b/regress/regress.sh
@@ -23,7 +23,9 @@ for file in */*.in */*/*.in; do
printf "%s: " "$file"
${MANDOC} "$file" > test.mandoc 2> /dev/null
${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
- if cmp -s test.mandoc test.nroff; then
+ mandoclen=`head -n 1 test.mandoc | wc -c`
+ nrofflen=`head -n 1 test.nroff | wc -c`
+ if cmp -s test.mandoc test.nroff $mandoclen $nrofflen; then
rm -f test.mandoc test.nroff
echo "passed"
pass=`expr $pass + 1`