diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-09 15:51:42 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-09 15:51:42 +0200 |
| commit | f571ffc6beb34cf0d4a171e5b5aa70a1d2b83658 (patch) | |
| tree | e629425f8bf37eb26894fa3d49f34a21b116f6c8 /suites/builtin.py | |
| parent | fb3df181b71d3bed23f43ea4a6fcd8111d4c8690 (diff) | |
| download | minishell_test-f571ffc6beb34cf0d4a171e5b5aa70a1d2b83658.tar.gz minishell_test-f571ffc6beb34cf0d4a171e5b5aa70a1d2b83658.tar.bz2 minishell_test-f571ffc6beb34cf0d4a171e5b5aa70a1d2b83658.zip | |
Added path test
Diffstat (limited to 'suites/builtin.py')
| -rw-r--r-- | suites/builtin.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/suites/builtin.py b/suites/builtin.py index 4e79432..30297e0 100644 --- a/suites/builtin.py +++ b/suites/builtin.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:43 by charles #+# #+# # -# Updated: 2020/08/28 17:36:12 by charles ### ########.fr # +# Updated: 2020/09/09 13:28:02 by charles ### ########.fr # # # # ############################################################################ # @@ -125,6 +125,16 @@ def suite_cd(test): test("cd //////////////////////////////////////////////////////; pwd; echo $PWD"); test("cd") + test("cd ' /'; pwd; echo $PWD") + test("cd ' / '; pwd; echo $PWD") + test("cd ' /'; pwd; echo $PWD") + test("cd ' / '; pwd; echo $PWD") + test("cd ' // '; pwd; echo $PWD") + + test("cd //home; pwd; echo $PWD") + test("cd ' //home'; pwd; echo $PWD") + test("cd ' //home '; pwd; echo $PWD") + test("cd d", setup="mkdir -m 000 d") test("cd d", setup="mkdir -m 001 d") test("cd d", setup="mkdir -m 002 d") |
