aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-03 19:12:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-03 19:12:25 +0000
commitcc08ad26fe371e0b0bdbc58343c1f33a8840d2a0 (patch)
tree104e98b094551d4705b5a690a5d8d8c960cb44e3 /testsuite
parent1e28f6171fe9cb56422473d506aa28fdb1eb46d8 (diff)
downloadbusybox-cc08ad26fe371e0b0bdbc58343c1f33a8840d2a0.tar.gz
xargs: fix xargs -e; added test for that
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/xargs.tests19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
new file mode 100755
index 000000000..e041d592e
--- /dev/null
+++ b/testsuite/xargs.tests
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Copyright 2008 by Denys Vlasenko
+# Licensed under GPL v2, see file LICENSE for details.
+
+. testing.sh
+
+# testing "test name" "command" "expected result" "file input" "stdin"
+
+testing "xargs stops on underscore" \
+ "xargs" \
+ "a\n" \
+ "" "a\n_\nb\n"
+
+testing "xargs -e without param" \
+ "xargs -e" \
+ "a _ b\n" \
+ "" "a\n_\nb\n"
+
+exit $FAILCOUNT