diff options
author | Joerg Sonnenberger <joerg@netbsd.org> | 2010-05-16 18:02:11 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@netbsd.org> | 2010-05-16 18:02:11 +0000 |
commit | 49cfaaa4db05243fdd74b3b6deb9aba06bf2402f (patch) | |
tree | e20249544aeb2426abc7fba22077affc3d5e23f6 /regress | |
parent | d5098afb2c3e5356a30dd0555efbdb18a6af305c (diff) | |
download | mandoc-49cfaaa4db05243fdd74b3b6deb9aba06bf2402f.tar.gz |
Skip first line when comparing output.
Diffstat (limited to 'regress')
-rwxr-xr-x | regress/regress.sh | 4 |
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` |