3df2cd2cc9
Partially based on: PR standards/36072
18 lines
392 B
Bash
18 lines
392 B
Bash
# $FreeBSD$
|
|
|
|
# Go into the regression test directory, handed to us by make(1)
|
|
TESTDIR=$1
|
|
if [ -z "$TESTDIR" ]; then
|
|
TESTDIR=.
|
|
fi
|
|
cd $TESTDIR
|
|
|
|
join -t , -a1 -a2 -e '(unknown)' -o 0,1.2,2.2 regress.1.in regress.2.in | \
|
|
diff -u regress.out -
|
|
if [ $? -eq 0 ]; then
|
|
echo "Test detected no regression, output matches."
|
|
else
|
|
echo "Test failed: regression detected. See above."
|
|
exit 1
|
|
fi
|