summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-03 18:44:43 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-03 18:44:43 +0000
commite13651801acee7fd9a1da2b4d7a9b3f2154b2891 (patch)
tree03faa1e47bbed968368ca0fb38ac0532c473e982 /tools
parente32f487207230bf5ebe34af0cb96aee388c9d7b9 (diff)
downloadFreeBSD-src-e13651801acee7fd9a1da2b4d7a9b3f2154b2891.zip
FreeBSD-src-e13651801acee7fd9a1da2b4d7a9b3f2154b2891.tar.gz
Add a test for the -R option.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/usr.bin/xargs/regress.R.out4
-rw-r--r--tools/regression/usr.bin/xargs/regress.sh5
2 files changed, 8 insertions, 1 deletions
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."
OpenPOWER on IntegriCloud