-
-
Notifications
You must be signed in to change notification settings - Fork 163
Testing the Interactive Shell
andychu edited this page Mar 11, 2020
·
10 revisions
It would be nice to automate this, but for now we should do basic manual testing upon release:
- Hit Tab for completions
- Hit tab in the middle of the line
- Hit tab on second line
- Change the window size and hit tab again
Signals:
- Ctrl-C, Ctrl-\ in the shell
-
sleep 5
, Ctrl-Z, thenfg
- Start
cat
and run Ctrl-C, Ctrl-Z, Ctrl-\ - Start
cat | head
and run Ctrl-C, Ctrl-Z, Ctrl-\ - Start a builtin
read
and run Ctrl-C, Ctrl-Z, Ctrl-\ -
sleep 5 &
, thenwait
- then Ctrl-C
-
time for i in $(seq 1000000); do true; done
and Ctrl-C -- busy loop should be cancellable. (zsh has problems here.) - Test signal in NON-interactive shell:
- osh -c 'sleep 5' and then Ctrl-C
-
demo/ctrl-c.sh loop
, then Ctrl-C
- User handlers:
trap 'echo hi' INT
, and then hit Ctrl-C-
demo/trap.sh sigint-batch
,sigterm-batch
-
SIGWINCH:
- Resize window and hit tab in a directory with many entries
Other:
- Ctrl-D to exit shell