From 46ba2708f83bf46186c33bf84975d39e87f467c1 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 11 Sep 2020 12:33:34 +0200 Subject: Refactoring files, splited test.py and suite.py in packages --- src/suites/status.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/suites/status.py (limited to 'src/suites/status.py') 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 +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# 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)") -- cgit