aboutsummaryrefslogtreecommitdiff
path: root/suites/operation.py
diff options
context:
space:
mode:
Diffstat (limited to 'suites/operation.py')
-rw-r--r--suites/operation.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/suites/operation.py b/suites/operation.py
index 7bed096..8d912d3 100644
--- a/suites/operation.py
+++ b/suites/operation.py
@@ -9,6 +9,9 @@ def suite_end(test):
test("echo; ")
test("echo ; ")
test("echo ;")
+ test("; echo")
+ test(" ;echo")
+ test(" ; echo")
test("echo a; echo b; echo c; echo d; echo e; echo f; echo g; echo h; echo i;" +
"echo j; echo k; echo l; echo m; echo c; echo c; echo c; echo c; echo c;" +
"echo c; echo c; echo c; echo v; echo w; echo x; echo y; echo z")
@@ -29,6 +32,9 @@ def suite_and(test):
test("echo&& ")
test("echo && ")
test("echo &&")
+ test("&&echo")
+ test("&& echo")
+ test(" && echo")
test("echo a&& echo b&& echo c&& echo d&& echo e&& echo f&& echo g&& echo h&& echo i&&" +
"echo j&& echo k&& echo l&& echo m&& echo c&& echo c&& echo c&& echo c&& echo c&&" +
"echo c&& echo c&& echo c&& echo v&& echo w&& echo x&& echo y&& echo z")
@@ -49,6 +55,9 @@ def suite_or(test):
test("echo|| ")
test("echo || ")
test("echo ||")
+ test("||echo")
+ test("|| echo")
+ test(" || echo")
test("echo a|| echo b|| echo c|| echo d|| echo e|| echo f|| echo g|| echo h|| echo i||" +
"echo j|| echo k|| echo l|| echo m|| echo c|| echo c|| echo c|| echo c|| echo c||" +
"echo c|| echo c|| echo c|| echo v|| echo w|| echo x|| echo y|| echo z")
@@ -69,3 +78,10 @@ def suite_pipe(test):
test("ls -l | cat -e | cat | cat | cat", setup="touch a b c d; mkdir m1 m2 m3")
test("ls -l | cat -e | cat -e | cat -e | cat -e", setup="touch a b c d; mkdir m1 m2 m3")
test("ls -l | cat -e < a", setup="touch a b c d; mkdir m1 m2 m3; echo bonjour > a")
+
+ test("echo|")
+ test("echo |")
+ test("echo | ")
+ test("|cat")
+ test("| cat")
+ test(" | cat")