summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2005-01-06 19:42:15 +0000
committerJames Youngman <jay@gnu.org>2005-01-06 19:42:15 +0000
commitcbdf185eb595afb637db2963e7ec1a170bc1884c (patch)
treee3f9af248e4f65483aba6a6b53b7a757593e18d3
parent6d940cdb85362398e704bd60caab8193b6e789cd (diff)
downloadfindutils-cbdf185eb595afb637db2963e7ec1a170bc1884c.tar.gz
Tests for the -L option
-rw-r--r--xargs/testsuite/Makefile.am3
-rw-r--r--xargs/testsuite/inputs/lines.xi6
-rw-r--r--xargs/testsuite/xargs.posix/l2.exp2
3 files changed, 10 insertions, 1 deletions
diff --git a/xargs/testsuite/Makefile.am b/xargs/testsuite/Makefile.am
index c96964e4..f4bc8b6b 100644
--- a/xargs/testsuite/Makefile.am
+++ b/xargs/testsuite/Makefile.am
@@ -9,6 +9,7 @@ EXTRA_DIST = config/unix.exp \
inputs/files.xi \
inputs/files0.xi \
inputs/quotes.xi \
+ inputs/lines .xi \
xargs.gnu/0n3.exp \
xargs.gnu/0n3.xo \
xargs.gnu/nothing.exp \
@@ -27,6 +28,8 @@ EXTRA_DIST = config/unix.exp \
xargs.posix/s48.exp \
xargs.posix/s48.xo \
xargs.posix/s6.exp \
+ xargs.posix/l2.exp \
+ xargs.posix/l2.xo \
xargs.sysv/eEOF.exp \
xargs.sysv/eEOF.xo \
xargs.sysv/eof.exp \
diff --git a/xargs/testsuite/inputs/lines.xi b/xargs/testsuite/inputs/lines.xi
new file mode 100644
index 00000000..5d229f64
--- /dev/null
+++ b/xargs/testsuite/inputs/lines.xi
@@ -0,0 +1,6 @@
+first nonblank line
+second nonblank line
+
+third nonblank line
+
+fourth nonblank line
diff --git a/xargs/testsuite/xargs.posix/l2.exp b/xargs/testsuite/xargs.posix/l2.exp
index c7e2dca6..5cb6641c 100644
--- a/xargs/testsuite/xargs.posix/l2.exp
+++ b/xargs/testsuite/xargs.posix/l2.exp
@@ -1 +1 @@
-xargs_start p {-l2} lines.xi
+xargs_start p {-L2} lines.xi