mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Add a test for the -R option.
This commit is contained in:
parent
1ed91802ee
commit
de8541ffe6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95995
tools/regression/usr.bin/xargs
4
tools/regression/usr.bin/xargs/regress.R.out
Normal file
4
tools/regression/usr.bin/xargs/regress.R.out
Normal file
@ -0,0 +1,4 @@
|
||||
The quick brown % % %% % %
|
||||
The fox jumped % % %% % %
|
||||
The over the lazy % % %% % %
|
||||
The dog % % %% % %
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user