mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
test: migrate some tests from zms_testeur
This commit is contained in:
parent
d44691a5b0
commit
6b2e15d301
1 changed files with 15 additions and 0 deletions
15
test.sh
15
test.sh
|
|
@ -732,4 +732,19 @@ minishell: ?/home/khais: No such file or directory
|
||||||
127
|
127
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
when_run <<"EOF" "export with no arguments"
|
||||||
|
export
|
||||||
|
export $DONTEXIT
|
||||||
|
export $NOSUCHVAR $DONTEXIST
|
||||||
|
EOF
|
||||||
|
expecting <<EOF
|
||||||
|
EOF
|
||||||
|
|
||||||
|
when_run <<EOF "env with grep"
|
||||||
|
env | grep HOME
|
||||||
|
EOF
|
||||||
|
expecting <<EOF
|
||||||
|
$(env | grep HOME)
|
||||||
|
EOF
|
||||||
|
|
||||||
finalize
|
finalize
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue