From e13651801acee7fd9a1da2b4d7a9b3f2154b2891 Mon Sep 17 00:00:00 2001 From: jmallett Date: Fri, 3 May 2002 18:44:43 +0000 Subject: Add a test for the -R option. --- tools/regression/usr.bin/xargs/regress.R.out | 4 ++++ tools/regression/usr.bin/xargs/regress.sh | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tools/regression/usr.bin/xargs/regress.R.out (limited to 'tools') diff --git a/tools/regression/usr.bin/xargs/regress.R.out b/tools/regression/usr.bin/xargs/regress.R.out new file mode 100644 index 0000000..6fe947f --- /dev/null +++ b/tools/regression/usr.bin/xargs/regress.R.out @@ -0,0 +1,4 @@ +The quick brown % % %% % % +The fox jumped % % %% % % +The over the lazy % % %% % % +The dog % % %% % % diff --git a/tools/regression/usr.bin/xargs/regress.sh b/tools/regression/usr.bin/xargs/regress.sh index 836b10e..5c83b5c 100644 --- a/tools/regression/usr.bin/xargs/regress.sh +++ b/tools/regression/usr.bin/xargs/regress.sh @@ -9,7 +9,7 @@ cd $TESTDIR STATUS=0 -for test in normal I J L; do +for test in normal I J L R; do echo "Running test $test" case "$test" in normal) @@ -24,6 +24,9 @@ for test in normal I J L; do L) xargs -L3 echo < regress.in | diff -u regress.$test.out - ;; + R) + xargs -I% -R1 echo The % % % %% % % < regress.in | diff -u regress.$test.out - + ;; esac if [ $? -eq 0 ]; then echo "PASS: Test $test detected no regression, output matches." -- cgit v1.1