Add a test for jot(1).

This commit is contained in:
Juli Mallett 2002-04-20 19:41:30 +00:00
parent 63e422f7ec
commit 3f288cae2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95150
4 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# $FreeBSD$
SUBDIR= file2c join uudecode uuencode xargs
SUBDIR= file2c join jot uudecode uuencode xargs
.include <bsd.subdir.mk>

View File

@ -0,0 +1,4 @@
# $FreeBSD$
all:
@sh ${.CURDIR}/regress.sh ${.CURDIR}

View File

@ -0,0 +1 @@
1,3,5,7,9,B,D,F,11,13,15,17,19,1B,1D,1F,21,23,25,27,29,2B,2D,2F,31,33,35,37,39,3B,3D,3F,41,43,45,47,49,4B,4D,4F,51,53,55,57,59,5B,5D,5F,61,63,65,67,69,6B,6D,6F,71,73,75,77,79,7B,7D,7F,81,83,85,87,89,8B,8D,8F,91,93,95,97,99,9B,9D,9F,A1,A3,A5,A7,A9,AB,AD,AF,B1,B3,B5,B7,B9,BB,BD,BF,C1,C3,C5,C8

View File

@ -0,0 +1,16 @@
# $FreeBSD$
# Go into the regression test directory, handed to us by make(1)
TESTDIR=$1
if [ -z "$TESTDIR" ]; then
TESTDIR=.
fi
cd $TESTDIR
jot -w '%X' -s ',' 100 1 200 | 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