aboutsummaryrefslogtreecommitdiff
path: root/src/suites/path.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-15 09:36:10 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-15 09:36:34 +0200
commit310ddc2208bd40e3950ebf89efe62f747be8277f (patch)
tree5adab20a92a99435c627a11f0db09897cfb3f56d /src/suites/path.py
parenta36a27b8ca85adf57b2a9926a53e74e3a3863d3d (diff)
downloadminishell_test-310ddc2208bd40e3950ebf89efe62f747be8277f.tar.gz
minishell_test-310ddc2208bd40e3950ebf89efe62f747be8277f.tar.bz2
minishell_test-310ddc2208bd40e3950ebf89efe62f747be8277f.zip
Added case insensitive PATH search tests
Diffstat (limited to 'src/suites/path.py')
-rw-r--r--src/suites/path.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/suites/path.py b/src/suites/path.py
index a09c64a..5db1e36 100644
--- a/src/suites/path.py
+++ b/src/suites/path.py
@@ -6,7 +6,7 @@
# By: charles <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/09 15:12:58 by charles #+# #+# #
-# Updated: 2020/10/09 12:58:55 by cacharle ### ########.fr #
+# Updated: 2020/10/15 09:17:09 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -66,6 +66,7 @@ def suite_path(test):
test("a", setup=mode_fmt.format("6777"), exports={"PATH": "path"})
test("a", setup=mode_fmt.format("7777"), exports={"PATH": "path"})
test("a", setup=mode_fmt.format("0000"), exports={"PATH": "path"})
+ test("A", setup=mode_fmt.format("000"), exports={"PATH": "path"})
# test("b", setup="mkdir path && cp " + whoami_path + " ./path/a && ln -s ./path/a ./path/b",
# exports={"PATH": "path"})
test("b", setup="mkdir path && ln -s " + whoami_path + " ./path/b", exports={"PATH": "path"})
@@ -123,3 +124,11 @@ def suite_path_variable(test):
test("somecmd", setup=create_cmd_setup, exports={"PATH": "/bin:"})
test("somecmd", setup=create_cmd_setup, exports={"PATH": ":/bin"})
test("somecmd", setup=create_cmd_setup, exports={"PATH": ":/bin:"})
+ test("Whoami", exports={"PATH": "/usr/bin"})
+ test("wHoAMi", exports={"PATH": "/usr/bin"})
+ test("whoami", exports={"PATH": "/usr/bIn"})
+ test("whoami", exports={"PATH": "/Usr/bin"})
+ test("Whoami", exports={"PATH": "/usr/bIn"})
+ test("wHoami", exports={"PATH": "/Usr/bin"})
+ test("Whoami", exports={"PATH": ""})
+ test("wHoami", exports={"PATH": ""})