diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-03 19:12:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-03 19:12:25 +0000 |
commit | cc08ad26fe371e0b0bdbc58343c1f33a8840d2a0 (patch) | |
tree | 104e98b094551d4705b5a690a5d8d8c960cb44e3 /testsuite | |
parent | 1e28f6171fe9cb56422473d506aa28fdb1eb46d8 (diff) | |
download | busybox-w32-cc08ad26fe371e0b0bdbc58343c1f33a8840d2a0.tar.gz busybox-w32-cc08ad26fe371e0b0bdbc58343c1f33a8840d2a0.tar.bz2 busybox-w32-cc08ad26fe371e0b0bdbc58343c1f33a8840d2a0.zip |
xargs: fix xargs -e; added test for that
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/xargs.tests | 19 |
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 @@ | |||
1 | #!/bin/sh | ||
2 | # Copyright 2008 by Denys Vlasenko | ||
3 | # Licensed under GPL v2, see file LICENSE for details. | ||
4 | |||
5 | . testing.sh | ||
6 | |||
7 | # testing "test name" "command" "expected result" "file input" "stdin" | ||
8 | |||
9 | testing "xargs stops on underscore" \ | ||
10 | "xargs" \ | ||
11 | "a\n" \ | ||
12 | "" "a\n_\nb\n" | ||
13 | |||
14 | testing "xargs -e without param" \ | ||
15 | "xargs -e" \ | ||
16 | "a _ b\n" \ | ||
17 | "" "a\n_\nb\n" | ||
18 | |||
19 | exit $FAILCOUNT | ||