aboutsummaryrefslogtreecommitdiff
path: root/src/suites
diff options
context:
space:
mode:
Diffstat (limited to 'src/suites')
-rw-r--r--src/suites/cmd.py9
-rw-r--r--src/suites/preprocess.py8
2 files changed, 15 insertions, 2 deletions
diff --git a/src/suites/cmd.py b/src/suites/cmd.py
index 2493a0e..d8770d4 100644
--- a/src/suites/cmd.py
+++ b/src/suites/cmd.py
@@ -6,13 +6,14 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 15:11:46 by charles #+# #+# #
-# Updated: 2020/09/12 01:31:00 by charles ### ########.fr #
+# Updated: 2020/09/12 10:51:19 by charles ### ########.fr #
# #
# ############################################################################ #
import distutils
import hooks
+import config
from suite import suite
@@ -94,6 +95,12 @@ def suite_cmd(test):
test("echo foo >bar", files=["bar"])
test("echo foo> bar", files=["bar"])
test("echo foo > bar", files=["bar"])
+ test("echo a as df sad f as df qw e qwe as df asd f as df as d fas d f"
+ "asd f asd f asdf asdf asdf asd f asd f asd f asd f as df as df a"
+ "asd f asd f asdf asdf asdf asd f asd f asd f asd f as df as df a"
+ "asd f asd f asdf asdf asdf asd f asd f asd f asd f as df as df a")
+ test("echo " + config.LOREM * 10)
+ test("echo " + config.LOREM * 20)
@suite()
diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py
index a407809..406e390 100644
--- a/src/suites/preprocess.py
+++ b/src/suites/preprocess.py
@@ -6,7 +6,7 @@
# By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:25:00 by charles #+# #+# #
-# Updated: 2020/09/11 20:15:08 by charles ### ########.fr #
+# Updated: 2020/09/12 10:48:04 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -27,6 +27,8 @@ def suite_quote(test):
test('echo "\\""')
test('echo "\\$"')
test('echo "\\\\"')
+ test('echo "\\a"')
+ test('echo "\\A"')
test('ls ""')
test("ls ''")
test('ls "" "" "" \'\' """"')
@@ -49,6 +51,10 @@ def suite_quote(test):
test('ec""""""""""""""""""""""""""""""""""""""""""""""""""""""""""ho bonjour')
test("'''''''e''''''''''c''''''''''''h''''''''o''''''''''''''''''''' bonjour")
test('"""""""e""""""""""c""""""""""""h""""""""o""""""""""""""""""""" bonjour')
+ test("echo '\"'")
+ test("echo '\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"'")
+ test('echo "\'"')
+ test('echo "\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'"')
test("echo '", hook=hooks.error_line0)
test('echo "', hook=hooks.error_line0)
test("echo '''", hook=hooks.error_line0)