diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-11 15:52:01 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-11 16:15:00 +0200 |
| commit | dcb4a6453ca1ca6789c3121a739f373abeaba14c (patch) | |
| tree | da3d3ef6ebbf4dda57b728edc0d366b2fbe62faf /src/suites/cmd.py | |
| parent | d0a80859f630866461e8a888b3f8fe008c8158ba (diff) | |
| download | minishell_test-dcb4a6453ca1ca6789c3121a739f373abeaba14c.tar.gz minishell_test-dcb4a6453ca1ca6789c3121a739f373abeaba14c.tar.bz2 minishell_test-dcb4a6453ca1ca6789c3121a739f373abeaba14c.zip | |
Added output hook and sort_lines hook
Diffstat (limited to 'src/suites/cmd.py')
| -rw-r--r-- | src/suites/cmd.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/suites/cmd.py b/src/suites/cmd.py index 4fc5f55..8698392 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 14:25:04 by charles ### ########.fr # +# Updated: 2020/09/11 16:14:18 by charles ### ########.fr # # # # ############################################################################ # @@ -315,3 +315,17 @@ def suite_cmd_path(test): test("./somedir", setup='mkdir somedir && chmod 6777 somedir') test("./somedir", setup='mkdir somedir && chmod 0000 somedir') test("./somedir", setup='mkdir somedir && chmod 0000 somedir') + + +@suite() +def suite_status(test): + test("echo $?") + test("echo; echo $?") + test("notfound; echo $?") + test("cat < doesntexist; echo $?") + test("cat < noperm; echo $?", setup="echo bonjour > noperm; chmod 000 noperm") + + test("echo") + test("notfound") + test("cat < doesntexist") + test("cat < noperm", setup="echo bonjour > noperm; chmod 000 noperm") |
