From 37b5238322d96c483512d2e671ec0a313e0aa73c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 15 Oct 2020 10:33:41 +0200 Subject: Added append tests --- src/suites/builtin.py | 3 ++- src/suites/cmd.py | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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 +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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 +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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() -- cgit