summaryrefslogtreecommitdiffstats
path: root/regress/regress.sh
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-03 17:08:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-03 17:08:26 +0000
commit4e05cf3d3a8605a1c8f5d77b5ce0a978bb5f3811 (patch)
tree8dba0c81b85890d40637901cbe8b9788e18285d9 /regress/regress.sh
parentb1feedf2d3c59385651b9ac7372df8538df7e828 (diff)
downloadmandoc-4e05cf3d3a8605a1c8f5d77b5ce0a978bb5f3811.tar.gz
Move the regression suite to the attic.
It has not been used or maintained for several years, and we won't start using it now. Devlopment regression testing is done in OpenBSD, and there is no value in maintaining two regression suites in parallel.
Diffstat (limited to 'regress/regress.sh')
-rwxr-xr-xregress/regress.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/regress/regress.sh b/regress/regress.sh
deleted file mode 100755
index 1e17f3a8..00000000
--- a/regress/regress.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-MANDOC=${MANDOC:-../mandoc}
-NROFF=${NROFF:-nroff}
-OUTPUT=${NROFF_OUTPUT:--Tascii}
-
-if [ ! -x $MANDOC ]
-then
- echo "regress.sh: command not found: $MANDOC" 1>&2
- return 0
-fi
-
-check_skip_list() {
- [ -f skip_list ] || return 1
- while read file; do
- [ "$file" != "$1" ] || return 0
- done < skip_list
- return 1
-}
-
-rm -rf output
-
-echo "Starting regression tests..."
-pass=0
-failed=0
-for file in */*.in */*/*.in; do
- [ -f "$file" ] || continue
- check_skip_list "$file" && break
- printf "%s: " "$file"
- ${MANDOC} "$file" > test.mandoc 2> /dev/null
- ${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
- 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
- echo "passed"
- pass=`expr $pass + 1`
- else
- file2="output/$file"
- mkdir -p `dirname $file2`
- echo "failed, see $file2"
- failed=`expr $failed + 1`
- mv test.nroff "${file2}".nroff
- mv test.mandoc "${file2}".mandoc
- diff -u "${file2}".nroff "${file2}".mandoc > "${file2}".diff
- fi
-done
-rm -f test.mandoc_ test.nroff_
-echo "Total: $pass passed, $failed failed"