blob: 62c076e935e8baf442e055a70c89ac4d07e159ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# ############################################################################ #
# #
# ::: :::::::: #
# status.py :+: :+: :+: #
# +:+ +:+ +:+ #
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:40 by charles #+# #+# #
# Updated: 2020/07/15 18:24:40 by charles ### ########.fr #
# #
# ############################################################################ #
from suite import suite
@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("(ls && ls) && echo $?")
test("echo")
test("notfound")
test("cat < doesntexist")
test("cat < noperm", setup="echo bonjour > noperm; chmod 000 noperm")
test("(ls && ls)")
test("(ls doesntexist || ls)")
test("(ls doesntexist && ls)")
|