diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-10 13:49:21 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-10 13:49:21 +0200 |
| commit | fb0a727a9885b80b855f470ae6d5c1bfac614439 (patch) | |
| tree | cbaad5a3182f1bc8eec693153b2d59e77164fb1c /src/suites/misc.py | |
| parent | 9fe518540848f6c273fa749a06437aa7bb7459ff (diff) | |
| download | minishell_test-fb0a727a9885b80b855f470ae6d5c1bfac614439.tar.gz minishell_test-fb0a727a9885b80b855f470ae6d5c1bfac614439.tar.bz2 minishell_test-fb0a727a9885b80b855f470ae6d5c1bfac614439.zip | |
Added SHLVL tests
Diffstat (limited to 'src/suites/misc.py')
| -rw-r--r-- | src/suites/misc.py | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/suites/misc.py b/src/suites/misc.py new file mode 100644 index 0000000..020069a --- /dev/null +++ b/src/suites/misc.py @@ -0,0 +1,84 @@ +# ############################################################################ # +# # +# ::: :::::::: # +# misc.py :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/10/10 13:06:19 by cacharle #+# #+# # +# Updated: 2020/10/10 13:48:31 by cacharle ### ########.fr # +# # +# ############################################################################ # + +from suite import suite + +@suite() +def suite_shlvl(test): + """ test for the SHLVL variable """ + test("echo $SHLVL") + test("echo $SHLVL", exports={"SHLVL": ""}) + test("echo $SHLVL", exports={"SHLVL": " 1"}) + test("echo $SHLVL", exports={"SHLVL": " 2"}) + test("echo $SHLVL", exports={"SHLVL": " 3"}) + test("echo $SHLVL", exports={"SHLVL": " ' 3'"}) + test("echo $SHLVL", exports={"SHLVL": " '\t3'"}) + test("echo $SHLVL", exports={"SHLVL": " '\t\f\r 3'"}) + test("echo $SHLVL", exports={"SHLVL": " '3 '"}) + test("echo $SHLVL", exports={"SHLVL": " '3\t'"}) + test("echo $SHLVL", exports={"SHLVL": " '3\r'"}) + test("echo $SHLVL", exports={"SHLVL": " '3\t\f\r '"}) + test("echo $SHLVL", exports={"SHLVL": " '3 a'"}) + test("echo $SHLVL", exports={"SHLVL": " '3\t\t\ta'"}) + test("echo $SHLVL", exports={"SHLVL": " 0"}) + test("echo $SHLVL", exports={"SHLVL": " -0"}) + test("echo $SHLVL", exports={"SHLVL": " -1"}) + test("echo $SHLVL", exports={"SHLVL": " 255"}) + test("echo $SHLVL", exports={"SHLVL": " 256"}) + test("echo $SHLVL", exports={"SHLVL": " 2000000"}) + test("echo $SHLVL", exports={"SHLVL": " -2000000"}) + test("echo $SHLVL", exports={"SHLVL": " 2147483647"}) + test("echo $SHLVL", exports={"SHLVL": " -2147483648"}) + test("echo $SHLVL", exports={"SHLVL": " 2147483648"}) + test("echo $SHLVL", exports={"SHLVL": " -2147483649"}) + test("echo $SHLVL", exports={"SHLVL": " 3147483648"}) + test("echo $SHLVL", exports={"SHLVL": " -3147483649"}) + test("echo $SHLVL", exports={"SHLVL": " 4294967295"}) + test("echo $SHLVL", exports={"SHLVL": " 4294967296"}) + test("echo $SHLVL", exports={"SHLVL": " -9223372036854775808"}) + test("echo $SHLVL", exports={"SHLVL": " 9223372036854775807"}) + test("echo $SHLVL", exports={"SHLVL": " -9223372036854775809"}) + test("echo $SHLVL", exports={"SHLVL": " 9223372036854775808"}) + test("echo $SHLVL", exports={"SHLVL": " 18446744073709551615"}) + test("echo $SHLVL", exports={"SHLVL": " 18446744073709551616"}) + test("echo $SHLVL", exports={"SHLVL": " +1"}) + test("echo $SHLVL", exports={"SHLVL": " +2"}) + test("echo $SHLVL", exports={"SHLVL": " +3"}) + test("echo $SHLVL", exports={"SHLVL": " +0"}) + test("echo $SHLVL", exports={"SHLVL": " +255"}) + test("echo $SHLVL", exports={"SHLVL": " +256"}) + test("echo $SHLVL", exports={"SHLVL": " +2000000"}) + test("echo $SHLVL", exports={"SHLVL": " +2147483647"}) + test("echo $SHLVL", exports={"SHLVL": " ++1"}) + test("echo $SHLVL", exports={"SHLVL": " ++2"}) + test("echo $SHLVL", exports={"SHLVL": " ++3"}) + test("echo $SHLVL", exports={"SHLVL": " ++0"}) + test("echo $SHLVL", exports={"SHLVL": " ++255"}) + test("echo $SHLVL", exports={"SHLVL": " ++256"}) + test("echo $SHLVL", exports={"SHLVL": " ++2000000"}) + test("echo $SHLVL", exports={"SHLVL": " ++2147483647"}) + test("echo $SHLVL", exports={"SHLVL": " --1"}) + test("echo $SHLVL", exports={"SHLVL": " --2"}) + test("echo $SHLVL", exports={"SHLVL": " --3"}) + test("echo $SHLVL", exports={"SHLVL": " --0"}) + test("echo $SHLVL", exports={"SHLVL": " --255"}) + test("echo $SHLVL", exports={"SHLVL": " --256"}) + test("echo $SHLVL", exports={"SHLVL": " --2000000"}) + test("echo $SHLVL", exports={"SHLVL": " --2147483647"}) + test("echo $SHLVL", exports={"SHLVL": " bonjour"}) + test("echo $SHLVL", exports={"SHLVL": " 0_"}) + test("echo $SHLVL", exports={"SHLVL": " _0"}) + test("echo $SHLVL", exports={"SHLVL": " 0123456789"}) + test("echo $SHLVL", exports={"SHLVL": " -0123456789"}) + test("echo $SHLVL", exports={"SHLVL": " 00000000000000000000000000000000000000000000001"}) + test("echo $SHLVL", exports={"SHLVL": " 00000000000000000000000000000000000000000000000" + "00000000000000000000000000000000000000000000001"}) |
