]> git.cameronkatri.com Git - mandoc.git/commitdiff
Skip first line when comparing output.
authorJoerg Sonnenberger <joerg@netbsd.org>
Sun, 16 May 2010 18:02:11 +0000 (18:02 +0000)
committerJoerg Sonnenberger <joerg@netbsd.org>
Sun, 16 May 2010 18:02:11 +0000 (18:02 +0000)
regress/regress.sh

index 1a65ad0d8f2f892a38f85dc2c24009949fe6d2db..9a98c498e4ae3ec021349ef7d26e47a013e50ba6 100755 (executable)
@@ -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`