Add a test for jot(1).
This commit is contained in:
parent
b44172213f
commit
24f13e9ab3
@ -1,5 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SUBDIR= file2c join uudecode uuencode xargs
|
||||
SUBDIR= file2c join jot uudecode uuencode xargs
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
4
tools/regression/usr.bin/jot/Makefile
Normal file
4
tools/regression/usr.bin/jot/Makefile
Normal file
@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
all:
|
||||
@sh ${.CURDIR}/regress.sh ${.CURDIR}
|
1
tools/regression/usr.bin/jot/regress.out
Normal file
1
tools/regression/usr.bin/jot/regress.out
Normal 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
|
16
tools/regression/usr.bin/jot/regress.sh
Normal file
16
tools/regression/usr.bin/jot/regress.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user