aboutsummaryrefslogtreecommitdiff
path: root/src/suites
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-12 02:22:56 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-12 02:22:56 +0200
commit387fe3441d2f1f02b8ff85e798eb1295f95b7e7f (patch)
treeaf7c4f3449e3a4a23b813a0d9d42255b8c302c2b /src/suites
parent958c410ba8b621a8a4d8caf04012028e7f151e0f (diff)
downloadminishell_test-387fe3441d2f1f02b8ff85e798eb1295f95b7e7f.tar.gz
minishell_test-387fe3441d2f1f02b8ff85e798eb1295f95b7e7f.tar.bz2
minishell_test-387fe3441d2f1f02b8ff85e798eb1295f95b7e7f.zip
Added suite name autocompletion
Diffstat (limited to 'src/suites')
-rw-r--r--src/suites/builtin.py14
-rw-r--r--src/suites/cmd.py4
2 files changed, 9 insertions, 9 deletions
diff --git a/src/suites/builtin.py b/src/suites/builtin.py
index 06686bb..ff094e0 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/09/11 19:56:44 by charles ### ########.fr #
+# Updated: 2020/09/12 01:40:08 by charles ### ########.fr #
# Updated: 2020/09/11 18:01:27 by juligonz ### ########.fr #
# #
# **************************************************************************** #
@@ -43,12 +43,12 @@ def suite_echo(test):
@suite()
def suite_export(test):
- test("export", hook=hooks.export_singleton)
- test("export", exports={"A": ""}, hook=hooks.export_singleton)
- test("export", exports={"A": "\""}, hook=hooks.export_singleton)
- test("export", exports={"A": "\t"}, hook=hooks.export_singleton)
- test("export", exports={"A": "'"}, hook=hooks.export_singleton)
- test("export", exports={"A": "a"}, hook=hooks.export_singleton)
+ test("export")#, hook=hooks.export_singleton)
+ test("export", exports={"A": ""})#, hook=hooks.export_singleton)
+ test("export", exports={"A": "\""})#, hook=hooks.export_singleton)
+ test("export", exports={"A": "\t"})#, hook=hooks.export_singleton)
+ test("export", exports={"A": "'"})#, hook=hooks.export_singleton)
+ test("export", exports={"A": "a"})#, hook=hooks.export_singleton)
test("export A=a; echo $A")
test("export A=a B=b C=c; echo $A$B$C")
test("export A=a B=b C=c D=d E=e F=f G=g H=h I=i J=j K=k L=l"
diff --git a/src/suites/cmd.py b/src/suites/cmd.py
index f258dd4..2493a0e 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/09/11 20:12:16 by charles ### ########.fr #
+# Updated: 2020/09/12 01:31:00 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -179,7 +179,7 @@ def suite_cmd_path(test):
test("_", setup="touch _")
test("'-'", setup="touch -")
test("./_", setup="touch _")
- test("./-", setup="touch -")
+ test("./-", setup="touch a; mv a -- -")
test("./.", setup="touch .")
test("./..", setup="touch ..")
test("./somefile", setup='touch somefile && chmod 0777 somefile')