Stateful Tests with pexpect

Test File Elapsed seconds Status
interactive 11.1 0
job-control 51.4 0
signals 72.8 0

interactive


case	osh	osh-cpp	bash	dash	mksh	
0	ok	ok	ok	ok	ok	syntax error makes status=2
1	ok	ok	ok	ok	ok	notification about background process (issue 1093)
2	ok	ok	ok	ok	ok	notification about background pipeline (issue 1093)

job-control


case	osh	osh-cpp	bash	dash	
0	ok	ok	ok	ok	fg twice should not result in fatal error (issue 1004)
1	ok	ok	ok	ok	Call fg twice after process exits (issue 721)
2	ok	ok	ok	ok	sleep 10 then Ctrl-Z then wait should not hang (issue 1005)
3	ok	ok	ok	SKIP	sleep 10 then Ctrl-Z then wait -n should not hang
4	ok	ok	ok	ok	ESRCH bug - pipeline with builtin
5	ok	ok	ok	ok	Resuming a stopped process
6	N-I	N-I	ok	ok	Suspend and resume a pipeline (issue 1087)
7	ok	ok	ok	ok	Suspend and resume a process several times
8	ok	ok	ok	ok	Ctrl-Z and then look at $?
9	ok	ok	ok	ok	A background job getting stopped (e.g. by SIGTTIN) or exiting should not disrupt foreground processes
10	ok	ok	ok	ok	Resume the special jobs: %- and %+
11	ok	ok	ok	SKIP	Resume jobs with integral job specs using `fg` builtin
12	ok	ok	ok	ok	Wait using a job spec

signals


case	osh	osh-cpp	bash	dash	mksh	
0	ok	ok	ok	ok	ok	Trapped SIGUSR1 while waiting at prompt (bug 1080)
1	ok	ok	ok	ok	ok	Trapped USR1 and USR2 while waiting at prompt
2	ok	ok	ok	ok	ok	trapped SIGHUP during wait builtin
3	ok	ok	ok	ok	ok	trapped SIGINT during wait builtin
4	ok	ok	ok	ok	ok	Ctrl-C after removing SIGINT trap (issue 1607)
5	ok	ok	ok	ok	ok	trapped SIGWINCH during wait builtin
6	ok	ok	ok	ok	ok	untrapped SIGWINCH during wait builtin (issue 1067)
7	ok	ok	ok	SKIP	SKIP	untrapped SIGWINCH during wait -n
8	ok	ok	ok	ok	ok	untrapped SIGWINCH during wait $!
9	ok	ok	ok	ok	ok	untrapped SIGWINCH during external command
10	ok	ok	ok	SKIP	ok	untrapped SIGWINCH during pipeline
11	ok	ok	ok	ok	ok	Ctrl-C during external command
12	ok	ok	ok	ok	SKIP	Ctrl-C during pipeline
13	ok	ok	ok	ok	ok	Ctrl-C during read builtin
14	ok	ok	ok	ok	ok	Ctrl-C during read -d
15	ok	ok	ok	ok	ok	Ctrl-C (untrapped) during wait builtin
16	ok	ok	ok	ok	ok	Ctrl-C (untrapped) during wait -n builtin
17	ok	ok	ok	ok	ok	Ctrl-C (untrapped) cancels entire interactive line
18	ok	ok	ok	ok	ok	Ctrl-C during Command Sub (issue 467)
19	ok	ok	ok	ok	ok	Ctrl-C (untrapped) exits loop