diff options
author | stefanf <stefanf@FreeBSD.org> | 2013-05-04 16:41:14 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2013-05-04 16:41:14 +0000 |
commit | d71f213031a7bd09d3ed64f72c4d42d46cb7e182 (patch) | |
tree | 7fb46304ad9c2d511997279ed34d50c457ce6932 /tools/regression/usr.bin | |
parent | 4bf79fd9477deb4474ffe0cbce91163140844cff (diff) | |
download | FreeBSD-src-d71f213031a7bd09d3ed64f72c4d42d46cb7e182.zip FreeBSD-src-d71f213031a7bd09d3ed64f72c4d42d46cb7e182.tar.gz |
Add a few xargs tests related to -0, -n and quoting.
Diffstat (limited to 'tools/regression/usr.bin')
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.0.in | bin | 0 -> 86 bytes | |||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.0.out | 8 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.0I.out | 18 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.0J.out | 4 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.0L.out | 6 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.n1.out | 8 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.n2.out | 4 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.n3.out | 3 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.quotes.in | 4 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.quotes.out | 7 | ||||
-rw-r--r-- | tools/regression/usr.bin/xargs/regress.sh | 10 |
11 files changed, 71 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/xargs/regress.0.in b/tools/regression/usr.bin/xargs/regress.0.in Binary files differnew file mode 100644 index 0000000..448ba53 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.0.in diff --git a/tools/regression/usr.bin/xargs/regress.0.out b/tools/regression/usr.bin/xargs/regress.0.out new file mode 100644 index 0000000..2bc9725 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.0.out @@ -0,0 +1,8 @@ +quick ' brown +fox jumped +over "the lazy +dog +quick brown fox +jumped over the +lazy dog + diff --git a/tools/regression/usr.bin/xargs/regress.0I.out b/tools/regression/usr.bin/xargs/regress.0I.out new file mode 100644 index 0000000..16009c0 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.0I.out @@ -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 + diff --git a/tools/regression/usr.bin/xargs/regress.0J.out b/tools/regression/usr.bin/xargs/regress.0J.out new file mode 100644 index 0000000..69c87f9 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.0J.out @@ -0,0 +1,4 @@ +The quick ' brown fox jumped +over "the lazy dog +quick brown fox jumped over the lazy dog + again. diff --git a/tools/regression/usr.bin/xargs/regress.0L.out b/tools/regression/usr.bin/xargs/regress.0L.out new file mode 100644 index 0000000..2d13fcc --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.0L.out @@ -0,0 +1,6 @@ +quick ' brown fox jumped +over "the lazy +dog +quick brown fox +jumped over the lazy dog + diff --git a/tools/regression/usr.bin/xargs/regress.n1.out b/tools/regression/usr.bin/xargs/regress.n1.out new file mode 100644 index 0000000..77ef6c5 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.n1.out @@ -0,0 +1,8 @@ +quick +brown +fox +jumped +over +the +lazy +dog diff --git a/tools/regression/usr.bin/xargs/regress.n2.out b/tools/regression/usr.bin/xargs/regress.n2.out new file mode 100644 index 0000000..4fa3f55 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.n2.out @@ -0,0 +1,4 @@ +quick brown +fox jumped +over the +lazy dog diff --git a/tools/regression/usr.bin/xargs/regress.n3.out b/tools/regression/usr.bin/xargs/regress.n3.out new file mode 100644 index 0000000..21b2c1e --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.n3.out @@ -0,0 +1,3 @@ +quick brown fox +jumped over the +lazy dog diff --git a/tools/regression/usr.bin/xargs/regress.quotes.in b/tools/regression/usr.bin/xargs/regress.quotes.in new file mode 100644 index 0000000..11388a0 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.quotes.in @@ -0,0 +1,4 @@ +a 'b "c' \'d +e\ f "g ' h" +i\ +j diff --git a/tools/regression/usr.bin/xargs/regress.quotes.out b/tools/regression/usr.bin/xargs/regress.quotes.out new file mode 100644 index 0000000..f79ad41 --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.quotes.out @@ -0,0 +1,7 @@ +a +b "c +'d +e f +g ' h +i +j diff --git a/tools/regression/usr.bin/xargs/regress.sh b/tools/regression/usr.bin/xargs/regress.sh index 7c8db1d..4edeae4 100644 --- a/tools/regression/usr.bin/xargs/regress.sh +++ b/tools/regression/usr.bin/xargs/regress.sh @@ -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() |