diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-12 19:47:44 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-12 19:47:44 +0200 |
commit | cbfe6ad4c6c6a218a3dd89623911183aca91b061 (patch) | |
tree | 10e0cbe1c2c7b87e828784c64628a84e2cfa795a /shell/hush_test | |
parent | 19679784c03089c585c609335389f034172a11ff (diff) | |
download | busybox-w32-cbfe6ad4c6c6a218a3dd89623911183aca91b061.tar.gz busybox-w32-cbfe6ad4c6c6a218a3dd89623911183aca91b061.tar.bz2 busybox-w32-cbfe6ad4c6c6a218a3dd89623911183aca91b061.zip |
hush: fix \<newline> handling on NOMMU
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/nommu1.right | 7 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/nommu1.tests | 12 | ||||
-rwxr-xr-x | shell/hush_test/run-all | 20 |
3 files changed, 29 insertions, 10 deletions
diff --git a/shell/hush_test/hush-misc/nommu1.right b/shell/hush_test/hush-misc/nommu1.right new file mode 100644 index 000000000..d206a854b --- /dev/null +++ b/shell/hush_test/hush-misc/nommu1.right | |||
@@ -0,0 +1,7 @@ | |||
1 | Ok | ||
2 | Ok | ||
3 | Ok | ||
4 | Ok | ||
5 | Ok | ||
6 | Ok | ||
7 | Done | ||
diff --git a/shell/hush_test/hush-misc/nommu1.tests b/shell/hush_test/hush-misc/nommu1.tests new file mode 100755 index 000000000..e14ada5f9 --- /dev/null +++ b/shell/hush_test/hush-misc/nommu1.tests | |||
@@ -0,0 +1,12 @@ | |||
1 | (echo \ | ||
2 | Ok) | ||
3 | ( (echo \ | ||
4 | Ok) ) | ||
5 | ( ( (echo \ | ||
6 | Ok) ) ) | ||
7 | |||
8 | (echo \Ok) | ||
9 | ( (echo \Ok) ) | ||
10 | ( ( (echo \Ok) ) ) | ||
11 | |||
12 | echo Done | ||
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all index cde841e66..ee8327f0d 100755 --- a/shell/hush_test/run-all +++ b/shell/hush_test/run-all | |||
@@ -38,16 +38,16 @@ do_test() | |||
38 | tret=0 | 38 | tret=0 |
39 | cd "$1" || { echo "cannot cd $1!"; exit 1; } | 39 | cd "$1" || { echo "cannot cd $1!"; exit 1; } |
40 | for x in run-*; do | 40 | for x in run-*; do |
41 | test -f "$x" || continue | 41 | test -f "$x" || continue |
42 | case "$x" in | 42 | case "$x" in |
43 | "$0"|run-minimal|run-gprof) ;; | 43 | "$0"|run-minimal|run-gprof) ;; |
44 | *.orig|*~) ;; | 44 | *.orig|*~) ;; |
45 | #*) echo $x ; sh $x ;; | 45 | #*) echo $x ; sh $x ;; |
46 | *) | 46 | *) |
47 | sh "$x" >"../$1-$x.fail" 2>&1 && \ | 47 | sh "$x" >"../$1-$x.fail" 2>&1 && \ |
48 | { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail"; | 48 | { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail"; |
49 | ;; | 49 | ;; |
50 | esac | 50 | esac |
51 | done | 51 | done |
52 | # Many bash run-XXX scripts just do this, | 52 | # Many bash run-XXX scripts just do this, |
53 | # no point in duplication it all over the place | 53 | # no point in duplication it all over the place |