diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-11 12:33:34 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-11 12:33:34 +0200 |
| commit | 46ba2708f83bf46186c33bf84975d39e87f467c1 (patch) | |
| tree | 8275c80bba98d63e81e3af9a1df8be62e0419003 /src/suites/status.py | |
| parent | c0b1a90cf9c52a0c9b1623ac695516031d5ccdba (diff) | |
| download | minishell_test-46ba2708f83bf46186c33bf84975d39e87f467c1.tar.gz minishell_test-46ba2708f83bf46186c33bf84975d39e87f467c1.tar.bz2 minishell_test-46ba2708f83bf46186c33bf84975d39e87f467c1.zip | |
Refactoring files, splited test.py and suite.py in packages
Diffstat (limited to 'src/suites/status.py')
| -rw-r--r-- | src/suites/status.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/suites/status.py b/src/suites/status.py new file mode 100644 index 0000000..62c076e --- /dev/null +++ b/src/suites/status.py @@ -0,0 +1,30 @@ +# ############################################################################ # +# # +# ::: :::::::: # +# status.py :+: :+: :+: # +# +:+ +:+ +:+ # +# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/07/15 18:24:40 by charles #+# #+# # +# Updated: 2020/07/15 18:24:40 by charles ### ########.fr # +# # +# ############################################################################ # + +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)") |
