Stateful Tests with pexpect

Test File Elapsed seconds Status
interactive 7.6 0
job-control 39.3 0
signals 54.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	Resuming a stopped process
5	N-I	N-I	ok	ok	Suspend and resume a pipeline (issue 1087)
6	ok	ok	ok	ok	Suspend and resume a process several times
7	ok	ok	ok	ok	Ctrl-Z and then look at $?
8	ok	ok	ok	ok	A background job getting stopped (e.g. by SIGTTIN) or exiting should not disrupt foreground processes
9	ok	ok	ok	ok	Resume the special jobs: %- and %+
10	ok	ok	ok	SKIP	Resume jobs with integral job specs using `fg` builtin
11	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	FAIL	ok	ok	ok	Ctrl-C during external command
		0/5 ok			
12	ok	FAIL	ok	ok	SKIP	Ctrl-C during pipeline
		0/5 ok			
13	ok	FAIL	ok	ok	ok	Ctrl-C during read builtin
		0/5 ok			
14	ok	FAIL	ok	ok	ok	Ctrl-C during read -d
		1/5 ok			
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	FAIL	ok	ok	ok	Ctrl-C (untrapped) cancels entire interactive line
		0/5 ok			
18	ok	FAIL	ok	ok	ok	Ctrl-C during Command Sub (issue 467)
		0/5 ok			
19	ok	FAIL	ok	ok	ok	Ctrl-C (untrapped) exits loop
		0/5 ok