]>
git.cameronkatri.com Git - mandoc.git/blob - regress/regress.sh
3 MANDOC
=${MANDOC:-../mandoc}
5 OUTPUT
=${NROFF_OUTPUT:--Tascii}
8 [ -f skip_list
] || return 1
10 [ "$file" != "$1" ] || return 0
17 echo "Starting regression tests..."
20 for file in */*.1 */*/*.1; do
21 [ -f "$file" ] || continue
22 check_skip_list
"$file" && break
24 mandoc
"$file" > test.mandoc
2> /dev
/null
25 ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff
2> /dev
/null
26 if cmp -s test.mandoc
test.nroff
; then
27 rm -f test.mandoc
test.nroff
32 mkdir -p `dirname $file2`
33 echo "failed, see $file2"
34 failed
=`expr $failed + 1`
35 mv test.nroff
"${file2}".nroff
36 mv test.mandoc
"${file2}".mandoc
37 diff -u "${file2}".nroff
"${file2}".mandoc
> "${file2}".
diff
40 echo "Total: $pass passed, $failed failed"