From cbdf185eb595afb637db2963e7ec1a170bc1884c Mon Sep 17 00:00:00 2001 From: James Youngman Date: Thu, 6 Jan 2005 19:42:15 +0000 Subject: [PATCH] Tests for the -L option --- xargs/testsuite/Makefile.am | 3 +++ xargs/testsuite/inputs/lines.xi | 6 ++++++ xargs/testsuite/xargs.posix/l2.exp | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 xargs/testsuite/inputs/lines.xi 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