aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-06 16:17:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-06 16:17:51 +0000
commit715f712d15f8eb0952765111295602bde5e2af90 (patch)
tree523012e868c1ada54999016dd48f2699bc5580c8 /shell/hush_test/hush-misc
parent3a64833eb9d03132be611ccedaac65e3bc4f2042 (diff)
downloadbusybox-w32-715f712d15f8eb0952765111295602bde5e2af90.tar.gz
busybox-w32-715f712d15f8eb0952765111295602bde5e2af90.tar.bz2
busybox-w32-715f712d15f8eb0952765111295602bde5e2af90.zip
move hush-parsing/and-or.tests to hush-misc/*
(which probably needs to be renamed to hush-execution...)
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r--shell/hush_test/hush-misc/and-or.right18
-rwxr-xr-xshell/hush_test/hush-misc/and-or.tests34
2 files changed, 52 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/and-or.right b/shell/hush_test/hush-misc/and-or.right
new file mode 100644
index 000000000..f9fa5fbf8
--- /dev/null
+++ b/shell/hush_test/hush-misc/and-or.right
@@ -0,0 +1,18 @@
1a1
2a4
3b1
4b3
5b4
6b6
7c4
8c5
9c7
10c8
11ff1
12ff3
13ft2
14ft3
15tf2
16tf3
17tt2
18tt4
diff --git a/shell/hush_test/hush-misc/and-or.tests b/shell/hush_test/hush-misc/and-or.tests
new file mode 100755
index 000000000..485458abe
--- /dev/null
+++ b/shell/hush_test/hush-misc/and-or.tests
@@ -0,0 +1,34 @@
1false || echo a1
2false && echo a2
3true || echo a3
4true && echo a4
5
6false || echo b1 || echo b2
7false || echo b3 && echo b4
8false && echo b5 || echo b6
9false && echo b7 && echo b8
10
11true || echo c1 || echo c2
12true || echo c3 && echo c4
13true && echo c5 || echo c6
14true && echo c7 && echo c8
15
16false || false || echo ff1
17false || false && echo ff2
18false && false || echo ff3
19false && false && echo ff4
20
21false || true || echo ft1
22false || true && echo ft2
23false && true || echo ft3
24false && true && echo ft4
25
26true || false || echo tf1
27true || false && echo tf2
28true && false || echo tf3
29true && false && echo tf4
30
31true || true || echo tt1
32true || true && echo tt2
33true && true || echo tt3
34true && true && echo tt4