diff options
author | Rob Landley <rob@landley.net> | 2019-12-23 23:21:36 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-12-23 23:21:36 -0600 |
commit | 908584d5e7f59f273dbfb46d96abddc0b02432b7 (patch) | |
tree | a94dd4f75b7bb1c752abf773692f6decc9003ab9 /tests | |
parent | f2e9d72c709374ab31ff58fb0b1f8f9e7f0e37d0 (diff) | |
download | toybox-908584d5e7f59f273dbfb46d96abddc0b02432b7.tar.gz |
Toysh passes two tests now! Woo! (Otherwise, does not remotely work right now.)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sh.test | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/sh.test b/tests/sh.test index ac7b6e45..ecfa2791 100755 --- a/tests/sh.test +++ b/tests/sh.test @@ -9,17 +9,17 @@ [ -z "$SH" ] && { [ -z "$TEST_HOST" ] && SH="sh" || export SH="bash" ; } export EVAL="$SH -c" -testing "leading assignments don't affect current line" \ - 'VAR=12345 echo ${VAR}a' "a\n" "" "" -testing "can't have space before first : but yes around arguments" \ - 'BLAH=abcdefghi; echo ${BLAH: 1 : 3 }' "bcd\n" "" "" +#testing "leading assignments don't affect current line" \ +# 'VAR=12345 echo ${VAR}a' "a\n" "" "" +#testing "can't have space before first : but yes around arguments" \ +# 'BLAH=abcdefghi; echo ${BLAH: 1 : 3 }' "bcd\n" "" "" + +# texpect "name" "command" E/O/I"string" # Prompt changes for root/normal user -[ $(id -u) -eq 0 ] && P='#' || P='$' +[ $(id -u) -eq 0 ] && P='# ' || P='$ ' # run sufficiently isolated shell child process to get predictable results -SH="env -i PATH=${PATH@Q} PS1=\\$ $SH --noediting --noprofile --norc -is" - -# texpect "name" "command" E/O/I"string" +SH="env -i PATH=${PATH@Q} PS1='\\$ ' $SH --noediting --noprofile --norc -is" txpect "prompt and exit" "$SH" "E$P" "Iexit\n" X0 txpect "prompt and echo" "$SH" "E$P" "Iecho hello\n" "Ohello"$'\n' "E$P" X0 |