aboutsummaryrefslogtreecommitdiff
path: root/src/suites/cmd.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-15 10:33:41 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-15 10:56:15 +0200
commit37b5238322d96c483512d2e671ec0a313e0aa73c (patch)
treebe7aed53ad4bbad5686b1bbd0f18060b5edb661f /src/suites/cmd.py
parentacf8e5d268bc0a0da7a49e878400097a6d824c4c (diff)
downloadminishell_test-37b5238322d96c483512d2e671ec0a313e0aa73c.tar.gz
minishell_test-37b5238322d96c483512d2e671ec0a313e0aa73c.tar.bz2
minishell_test-37b5238322d96c483512d2e671ec0a313e0aa73c.zip
Added append tests
Diffstat (limited to 'src/suites/cmd.py')
-rw-r--r--src/suites/cmd.py6
1 files changed, 5 insertions, 1 deletions
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()