mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
Add a few xargs tests related to -0, -n and quoting.
This commit is contained in:
parent
6886522d85
commit
cd5810229d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250242
BIN
tools/regression/usr.bin/xargs/regress.0.in
Normal file
BIN
tools/regression/usr.bin/xargs/regress.0.in
Normal file
Binary file not shown.
8
tools/regression/usr.bin/xargs/regress.0.out
Normal file
8
tools/regression/usr.bin/xargs/regress.0.out
Normal file
@ -0,0 +1,8 @@
|
||||
quick ' brown
|
||||
fox jumped
|
||||
over "the lazy
|
||||
dog
|
||||
quick brown fox
|
||||
jumped over the
|
||||
lazy dog
|
||||
|
18
tools/regression/usr.bin/xargs/regress.0I.out
Normal file
18
tools/regression/usr.bin/xargs/regress.0I.out
Normal 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
|
||||
|
4
tools/regression/usr.bin/xargs/regress.0J.out
Normal file
4
tools/regression/usr.bin/xargs/regress.0J.out
Normal file
@ -0,0 +1,4 @@
|
||||
The quick ' brown fox jumped
|
||||
over "the lazy dog
|
||||
quick brown fox jumped over the lazy dog
|
||||
again.
|
6
tools/regression/usr.bin/xargs/regress.0L.out
Normal file
6
tools/regression/usr.bin/xargs/regress.0L.out
Normal file
@ -0,0 +1,6 @@
|
||||
quick ' brown fox jumped
|
||||
over "the lazy
|
||||
dog
|
||||
quick brown fox
|
||||
jumped over the lazy dog
|
||||
|
8
tools/regression/usr.bin/xargs/regress.n1.out
Normal file
8
tools/regression/usr.bin/xargs/regress.n1.out
Normal file
@ -0,0 +1,8 @@
|
||||
quick
|
||||
brown
|
||||
fox
|
||||
jumped
|
||||
over
|
||||
the
|
||||
lazy
|
||||
dog
|
4
tools/regression/usr.bin/xargs/regress.n2.out
Normal file
4
tools/regression/usr.bin/xargs/regress.n2.out
Normal file
@ -0,0 +1,4 @@
|
||||
quick brown
|
||||
fox jumped
|
||||
over the
|
||||
lazy dog
|
3
tools/regression/usr.bin/xargs/regress.n3.out
Normal file
3
tools/regression/usr.bin/xargs/regress.n3.out
Normal file
@ -0,0 +1,3 @@
|
||||
quick brown fox
|
||||
jumped over the
|
||||
lazy dog
|
4
tools/regression/usr.bin/xargs/regress.quotes.in
Normal file
4
tools/regression/usr.bin/xargs/regress.quotes.in
Normal file
@ -0,0 +1,4 @@
|
||||
a 'b "c' \'d
|
||||
e\ f "g ' h"
|
||||
i\
|
||||
j
|
7
tools/regression/usr.bin/xargs/regress.quotes.out
Normal file
7
tools/regression/usr.bin/xargs/regress.quotes.out
Normal file
@ -0,0 +1,7 @@
|
||||
a
|
||||
b "c
|
||||
'd
|
||||
e f
|
||||
g ' h
|
||||
i
|
||||
j
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user