Add a test for the -R option.

This commit is contained in:
Juli Mallett 2002-05-03 18:44:43 +00:00
parent 1ed91802ee
commit de8541ffe6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95995
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,4 @@
The quick brown % % %% % %
The fox jumped % % %% % %
The over the lazy % % %% % %
The dog % % %% % %

View file

@ -9,7 +9,7 @@ cd $TESTDIR
STATUS=0
for test in normal I J L; do
for test in normal I J L R; do
echo "Running test $test"
case "$test" in
normal)
@ -24,6 +24,9 @@ for test in normal I J L; do
L)
xargs -L3 echo < regress.in | diff -u regress.$test.out -
;;
R)
xargs -I% -R1 echo The % % % %% % % < regress.in | diff -u regress.$test.out -
;;
esac
if [ $? -eq 0 ]; then
echo "PASS: Test $test detected no regression, output matches."