aboutsummaryrefslogtreecommitdiff
path: root/suites/status.py
diff options
context:
space:
mode:
Diffstat (limited to 'suites/status.py')
-rw-r--r--suites/status.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/suites/status.py b/suites/status.py
new file mode 100644
index 0000000..f116ec1
--- /dev/null
+++ b/suites/status.py
@@ -0,0 +1,18 @@
+from suite import suite
+
+@suite
+def suite_status(test):
+ test("echo $?")
+ test("echo; echo $?")
+ test("notfound; echo $?")
+ test("cat < doesntexist; echo $?")
+ test("cat < noperm; echo $?", setup="echo bonjour > noperm; chmod 000 noperm")
+ test("(ls && ls) && echo $?")
+
+ test("echo")
+ test("notfound")
+ test("cat < doesntexist")
+ test("cat < noperm", setup="echo bonjour > noperm; chmod 000 noperm")
+ test("(ls && ls)")
+ test("(ls doesntexist || ls)")
+ test("(ls doesntexist && ls)")