bc: fix for() to not leave data on stack
[oweals/busybox.git] / testsuite / xargs.tests
index 17f4e7a1be24a13f7bcb21889dd47d3049098d4c..2d0a201b784572d5d84003161322587db9f3ab96 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Copyright 2008 by Denys Vlasenko
-# Licensed under GPL v2, see file LICENSE for details.
+# Licensed under GPLv2, see file LICENSE in this source tree.
 
 . ./testing.sh
 
@@ -26,4 +26,19 @@ testing "xargs does not stop on underscore ('new' GNU behavior)" \
        "a _ b\n" \
        "" "a\n_\nb\n"
 
+testing "xargs -s7 can take one-char input" \
+       "xargs -s7 echo" \
+       "a\n" \
+       "" "a\n"
+
+testing "xargs -sNUM test 1" \
+       "xargs -ts25 echo 2>&1 >/dev/null" \
+       "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" \
+       "" "1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 00\n"
+
+testing "xargs -sNUM test 2" \
+       "xargs -ts25 echo 1 2>&1 >/dev/null" \
+       "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" \
+       "" "2 3 4 5 6 7 8 9 0 2 3 4 5 6 7 8 9 00\n"
+
 exit $FAILCOUNT