summaryrefslogtreecommitdiff
path: root/testsuite/xargs.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/xargs.tests')
-rwxr-xr-xtestsuite/xargs.tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
index 17f4e7a1b..6463252bf 100755
--- a/testsuite/xargs.tests
+++ b/testsuite/xargs.tests
@@ -26,4 +26,19 @@ testing "xargs does not stop on underscore ('new' GNU behavior)" \
26 "a _ b\n" \ 26 "a _ b\n" \
27 "" "a\n_\nb\n" 27 "" "a\n_\nb\n"
28 28
29testing "xargs -s7 can take one-char input" \
30 "xargs -s7 echo" \
31 "a\n" \
32 "" "a\n"
33
34testing "xargs -sNUM test 1" \
35 "xargs -ts25 echo 2>&1 >/dev/null" \
36 "echo 1 2 3 4 5 6 7 8 9 0\n""echo 1 2 3 4 5 6 7 8 9\n""echo 00\n" \
37 "" "1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 00\n"
38
39testing "xargs -sNUM test 2" \
40 "xargs -ts25 echo 1 2>&1 >/dev/null" \
41 "echo 1 2 3 4 5 6 7 8 9 0\n""echo 1 2 3 4 5 6 7 8 9\n""echo 1 00\n" \
42 "" "2 3 4 5 6 7 8 9 0 2 3 4 5 6 7 8 9 00\n"
43
29exit $FAILCOUNT 44exit $FAILCOUNT