Contents of /tags/mkinitrd-6_2_2/mkinitrd-magellan/busybox/testsuite/xargs.tests
Parent Directory
|
Revision Log
Revision 1003 -
(show annotations)
(download)
Sun May 30 12:30:14 2010 UTC (14 years ago) by niro
File size: 548 byte(s)
Sun May 30 12:30:14 2010 UTC (14 years ago) by niro
File size: 548 byte(s)
tagged 'mkinitrd-6_2_2'
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 -E _ stops on underscore" \ |
10 | "xargs -E _" \ |
11 | "a\n" \ |
12 | "" "a\n_\nb\n" |
13 | |
14 | testing "xargs -E ''" \ |
15 | "xargs -E ''" \ |
16 | "a _ b\n" \ |
17 | "" "a\n_\nb\n" |
18 | |
19 | testing "xargs -e without param" \ |
20 | "xargs -e" \ |
21 | "a _ b\n" \ |
22 | "" "a\n_\nb\n" |
23 | |
24 | testing "xargs does not stop on underscore ('new' GNU behavior)" \ |
25 | "xargs" \ |
26 | "a _ b\n" \ |
27 | "" "a\n_\nb\n" |
28 | |
29 | exit $FAILCOUNT |