[BACK]Return to regress.sh CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress

Diff for /mandoc/regress/Attic/regress.sh between version 1.2 and 1.5

version 1.2, 2010/05/16 17:41:37 version 1.5, 2010/05/16 18:10:24
Line 17  rm -rf output
Line 17  rm -rf output
 echo "Starting regression tests..."  echo "Starting regression tests..."
 pass=0  pass=0
 failed=0  failed=0
 for file in */*.1 */*/*.1; do  for file in */*.in */*/*.in; do
         [ -f "$file" ] || continue          [ -f "$file" ] || continue
         check_skip_list "$file" && break          check_skip_list "$file" && break
         printf "%s: " "$file"          printf "%s: " "$file"
         mandoc "$file" > test.mandoc 2> /dev/null          ${MANDOC} "$file" > test.mandoc 2> /dev/null
         ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null          ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
         if cmp -s test.mandoc test.nroff; then          l=`wc -l < test.mandoc`
           head -n `expr $l - 1` test.mandoc | tail -n `expr $l - 2` > test.mandoc_
           l=`wc -l < test.nroff`
           head -n `expr $l - 1` test.nroff| tail -n `expr $l - 2` > test.nroff_
           if cmp -s test.mandoc_ test.nroff_; then
                 rm -f test.mandoc test.nroff                  rm -f test.mandoc test.nroff
                 echo "passed"                  echo "passed"
                 pass=`expr $pass + 1`                  pass=`expr $pass + 1`
Line 37  for file in */*.1 */*/*.1; do
Line 41  for file in */*.1 */*/*.1; do
                 diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff                  diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff
         fi          fi
 done  done
   rm -f test.mandoc_ test.nroff_
 echo "Total: $pass passed, $failed failed"  echo "Total: $pass passed, $failed failed"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

CVSweb