Attached is a testsuite for the runtime behaviour of the screen section. I've been maintaining it for a while now and I'm sure others will find it useful.
Note that it assumes your system has xterm installed. If you don't have xterm or want to run the tests in a different terminal, just replace xterm in the source with the name of your terminal emulator.
Compile with
autom4te --lang=autotest -o ./testsuite ./screen_test.at
The latest version is found in the comments below.
Diff:
This version includes checks for
BLANK,ERASE,DISPLAY ... ATand [bugs:#202].Related
Bugs:
#202Updated for [bugs:#246]. This version includes checks for LINE 0, COLUMN 0, LINE 0 COLUMN 0, DISPLAY SPACES, DISPLAY LOW-VALUE, DISPLAY ALL X"01", DISPLAY ALL X"02" and DISPLAY ALL X"07".
Related
Bugs:
#246Updated for [bugs:#423]. Includes checks for
SIZEandUPDATE. One test currently fails due to [bugs:#428].Related
Bugs:
#423Bugs:
#428Last edit: Edward Hart 2017-09-11
Integrated as manual testsuite with [r2506] + [r2507], may be run with
make checkmanual(we can rename this with a time frame until 3.0-rc1 [should be done within one week]).As the actual way to run may need to be tweaked locally I've moved this part to a local script that may be changed by the user.
@Edward: Please adjust the "environment" as you want and update the actual tests if you have anything more recent. I'll add more tests when adjusting the extended screen behaviour, too.
Note: [r2509] added the option to run with
screeninstead ofxtermand always defaults to usingscreenif$DISPLAYis not set (I think this should work in most cases but there may be a better solution).