Add a few xargs tests related to -0, -n and quoting.

This commit is contained in:
Stefan Farfeleder 2013-05-04 16:41:14 +00:00
parent 6886522d85
commit cd5810229d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250242
11 changed files with 71 additions and 1 deletions

Binary file not shown.

View File

@ -0,0 +1,8 @@
quick ' brown
fox jumped
over "the lazy
dog
quick brown fox
jumped over the
lazy dog

View File

@ -0,0 +1,18 @@
The quick ' brown quick ' brownquick ' brown quick ' brown
The fox jumped
over "the lazy fox jumped
over "the lazyfox jumped
over "the lazy fox jumped
over "the lazy
The
The dog
quick brown fox dog
quick brown foxdog
quick brown fox dog
quick brown fox
The jumped over the jumped over thejumped over the jumped over the
The lazy dog
lazy dog
lazy dog
lazy dog

View File

@ -0,0 +1,4 @@
The quick ' brown fox jumped
over "the lazy dog
quick brown fox jumped over the lazy dog
again.

View File

@ -0,0 +1,6 @@
quick ' brown fox jumped
over "the lazy
dog
quick brown fox
jumped over the lazy dog

View File

@ -0,0 +1,8 @@
quick
brown
fox
jumped
over
the
lazy
dog

View File

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

View File

@ -0,0 +1,3 @@
quick brown fox
jumped over the
lazy dog

View File

@ -0,0 +1,4 @@
a 'b "c' \'d
e\ f "g ' h"
i\
j

View File

@ -0,0 +1,7 @@
a
b "c
'd
e f
g ' h
i
j

View File

@ -1,6 +1,6 @@
# $FreeBSD$
echo 1..5
echo 1..13
REGRESSION_START($1)
@ -9,5 +9,13 @@ REGRESSION_TEST(`I', `xargs -I% echo The % % % %% % % < regress.in')
REGRESSION_TEST(`J', `xargs -J% echo The % again. < regress.in')
REGRESSION_TEST(`L', `xargs -L3 echo < regress.in')
REGRESSION_TEST(`R', `xargs -I% -R1 echo The % % % %% % % < regress.in')
REGRESSION_TEST(`n1', `xargs -n1 echo < regress.in')
REGRESSION_TEST(`n2', `xargs -n2 echo < regress.in')
REGRESSION_TEST(`n3', `xargs -n3 echo < regress.in')
REGRESSION_TEST(`0', `xargs -0 -n1 echo < regress.0.in')
REGRESSION_TEST(`0I', `xargs -0 -I% echo The % %% % < regress.0.in')
REGRESSION_TEST(`0J', `xargs -0 -J% echo The % again. < regress.0.in')
REGRESSION_TEST(`0L', `xargs -0 -L2 echo < regress.0.in')
REGRESSION_TEST(`quotes', `xargs -n1 echo < regress.quotes.in')
REGRESSION_END()