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 /suites/parenthesis.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 'suites/parenthesis.py')
| -rw-r--r-- | suites/parenthesis.py | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/suites/parenthesis.py b/suites/parenthesis.py deleted file mode 100644 index a06fdda..0000000 --- a/suites/parenthesis.py +++ /dev/null @@ -1,57 +0,0 @@ -# ############################################################################ # -# # -# ::: :::::::: # -# parenthesis.py :+: :+: :+: # -# +:+ +:+ +:+ # -# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # -# +#+#+#+#+#+ +#+ # -# Created: 2020/07/15 18:24:57 by charles #+# #+# # -# Updated: 2020/07/15 18:24:57 by charles ### ########.fr # -# # -# ############################################################################ # - -from suite import suite - -@suite -def suite_parenthesis(test): - test("(echo bonjour)") - test("(echo bonjour )") - test("( echo bonjour )") - - test("(echo a && echo b) && echo c") - test("(echo a || echo b) || echo c") - test("(ls doesnotexist || echo b) || echo c") - test("(echo a || ls doesnotexist) || echo c") - test("echo aa && (echo b && echo c)") - test("ls doesnotexist || (echo b && echo c)") - - test("(echo bonjour > f1)", files=["f1"]) - test("(echo bonjour > f1 > f2 > f3)", files=["f1", "f2", "f3"]) - test("(echo bonjour > f1 > f2 > f3 > f4 > f5 > f6 > f7 > f8 > f9)", - files=["f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9"]) - - test("(echo bonjour) > f1", files=["f1"]) - test("(echo bonjour) > f1 > f2 > f3", files=["f1", "f2", "f3"]) - test("(echo bonjour) > f1 > f2 > f3 > f4 > f5 > f6 > f7 > f8 > f9", - files=["f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9"]) - - test("(cat -e < f1)", setup="echo bonjour > f1") - test("(cat -e < f1 < f2 < f3)", setup="touch f1 f2 f3 f4; echo bonjour > f3") - test("(cat -e < f1 < f2 < f3 < f4 < f5 < f6 < f7 < f8 < f9)", - setup="touch f1 f2 f3 f4 f5 f6 f7 f8 f9; echo bonjour > f9") - - test("(cat -e) < f1", setup="echo bonjour > f1") - test("(cat -e) < f1 < f2 < f3", setup="touch f1 f2 f3 f4; echo bonjour > f3") - test("(cat -e) < f1 < f2 < f3 < f4 < f5 < f6 < f7 < f8 < f9", - setup="touch f1 f2 f3 f4 f5 f6 f7 f8 f9; echo bonjour > f9") - - test("(echo bonjour > f1 > f2 > f3 > f4) > f5 > f6 > f7 > f8 > f9", - files=["f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9"]) - test("(cat -e < f1 < f2 < f3 < f4) < f5 < f6 < f7 < f8 < f9", - setup="touch f1 f2 f3 f4 f5 f6 f7 f8 f9; echo bonjour > f4") - - test("(echo bonjour > f1) > f2", files=["f1", "f2"]) - test("(cat -e > f1) < f2", setup="ls -l / > f2", files=["f1"]) - - test("(exit); echo bonjour") - test("(echo bonjour; exit; echo aurevoir)") |
