diff options
Diffstat (limited to 'usr.bin/xargs/tests/regress.sh')
-rw-r--r-- | usr.bin/xargs/tests/regress.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr.bin/xargs/tests/regress.sh b/usr.bin/xargs/tests/regress.sh new file mode 100644 index 0000000..316365d --- /dev/null +++ b/usr.bin/xargs/tests/regress.sh @@ -0,0 +1,21 @@ +# $FreeBSD$ + +echo 1..13 + +REGRESSION_START($1) + +REGRESSION_TEST(`normal', `xargs echo The <${SRCDIR}/regress.in') +REGRESSION_TEST(`I', `xargs -I% echo The % % % %% % % <${SRCDIR}/regress.in') +REGRESSION_TEST(`J', `xargs -J% echo The % again. <${SRCDIR}/regress.in') +REGRESSION_TEST(`L', `xargs -L3 echo <${SRCDIR}/regress.in') +REGRESSION_TEST(`R', `xargs -I% -R1 echo The % % % %% % % <${SRCDIR}/regress.in') +REGRESSION_TEST(`n1', `xargs -n1 echo <${SRCDIR}/regress.in') +REGRESSION_TEST(`n2', `xargs -n2 echo <${SRCDIR}/regress.in') +REGRESSION_TEST(`n3', `xargs -n3 echo <${SRCDIR}/regress.in') +REGRESSION_TEST(`0', `xargs -0 -n1 echo <${SRCDIR}/regress.0.in') +REGRESSION_TEST(`0I', `xargs -0 -I% echo The % %% % <${SRCDIR}/regress.0.in') +REGRESSION_TEST(`0J', `xargs -0 -J% echo The % again. <${SRCDIR}/regress.0.in') +REGRESSION_TEST(`0L', `xargs -0 -L2 echo <${SRCDIR}/regress.0.in') +REGRESSION_TEST(`quotes', `xargs -n1 echo <${SRCDIR}/regress.quotes.in') + +REGRESSION_END() |