diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-06-23 09:08:16 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-23 10:31:05 +0200 |
| commit | 3f2db95d5563c9c2b92a0531ddee28f79f438706 (patch) | |
| tree | ee353ad4a0fcca9d59758f2e98efa3d9907096fc /suites/status.py | |
| parent | b463bfa34471c1d3e65dfd4e22a99f4c84d7c5c6 (diff) | |
| download | minishell_test-3f2db95d5563c9c2b92a0531ddee28f79f438706.tar.gz minishell_test-3f2db95d5563c9c2b92a0531ddee28f79f438706.tar.bz2 minishell_test-3f2db95d5563c9c2b92a0531ddee28f79f438706.zip | |
Added a few builtin/parenthesis tests
Diffstat (limited to 'suites/status.py')
| -rw-r--r-- | suites/status.py | 18 |
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)") |
