diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-15 10:33:41 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-15 10:56:15 +0200 |
| commit | 37b5238322d96c483512d2e671ec0a313e0aa73c (patch) | |
| tree | be7aed53ad4bbad5686b1bbd0f18060b5edb661f /src/suites | |
| parent | acf8e5d268bc0a0da7a49e878400097a6d824c4c (diff) | |
| download | minishell_test-37b5238322d96c483512d2e671ec0a313e0aa73c.tar.gz minishell_test-37b5238322d96c483512d2e671ec0a313e0aa73c.tar.bz2 minishell_test-37b5238322d96c483512d2e671ec0a313e0aa73c.zip | |
Added append tests
Diffstat (limited to 'src/suites')
| -rw-r--r-- | src/suites/builtin.py | 3 | ||||
| -rw-r--r-- | src/suites/cmd.py | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/suites/builtin.py b/src/suites/builtin.py index ba302f6..523ffe5 100644 --- a/src/suites/builtin.py +++ b/src/suites/builtin.py @@ -6,7 +6,7 @@ # By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:43 by charles #+# #+# # -# Updated: 2020/10/15 09:38:07 by cacharle ### ########.fr # +# Updated: 2020/10/15 10:41:55 by cacharle ### ########.fr # # Updated: 2020/09/11 18:01:27 by juligonz ### ########.fr # # # # **************************************************************************** # @@ -57,6 +57,7 @@ def suite_echo(test): test("eCHo bonjour", exports={"PATH": "/bin:/usr/bin"}) test("EcHo bonjour", exports={"PATH": "/bin:/usr/bin"}) test("eChO bonjour", exports={"PATH": "/bin:/usr/bin"}) + test("eChO -e 'bonjo\\nur'", exports={"PATH": "/bin:/usr/bin"}) @suite() diff --git a/src/suites/cmd.py b/src/suites/cmd.py index b5b770f..19dd698 100644 --- a/src/suites/cmd.py +++ b/src/suites/cmd.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 15:11:46 by charles #+# #+# # -# Updated: 2020/10/15 09:25:04 by cacharle ### ########.fr # +# Updated: 2020/10/15 10:40:11 by cacharle ### ########.fr # # # # ############################################################################ # @@ -84,6 +84,10 @@ def suite_redirection(test): test("cat << << bar", setup="echo bonjour > bar", hook=hooks.error_line0, hook_status=hooks.platform_status(1, 2)) test("cat <<<<< bar", setup="echo bonjour > bar", hook=hooks.error_line0, hook_status=hooks.platform_status(1, 2)) test("cat < doesnotexist") + test("echo bonjour >> a", setup="echo a > a", files=["a"]) + test("echo bonjour >> a >> a", setup="echo a > a", files=["a"]) + test("echo bonjour > a", setup="echo a > a", files=["a"]) + test("echo bonjour > a >> a", setup="echo a > a", files=["a"]) @suite() |
