Skip to content
Permalink
Browse files
This is a squash of Thomas Dickey's commits in PR 1.
originally 2018-04-04

	* tests/da.py:
	works for me (I fixed that in January 2015 from report by Nachman)

	* tests/decrqss.py, tests/decera.py, tests/decsera.py, tests/decic.py, tests/decdc.py, tests/xterm_winops.py:
	works for me

originally 2018-04-05

	* tests/decset.py: works for me

	* tests/decscl.py: works for me (DECSCL except for the "expected" RIS)

	* tests/deccra.py: works for me - but his expected value was wrong

originally 2018-04-06

	* tests/decset.py, tests/rep.py: fixed:332

originally 2018-04-08

	* tests/xterm_winops.py:
	try to restore screen between maximizing (would need a composite test too)

	* esccmd.py: another code

	* tests/xterm_winops.py:
	try adding timing fixes (doesn't seem to help, but doesn't hurt)

	* tests/xterm_winops.py:
	hmm - no progress, but I see that some "Passes" are due to starting from
	a maximized state.

	* tests/xterm_winops.py: still 3 (problem with iconify/deiconfy?)

	* tests/xterm_winops.py: 3...

	* tests/xterm_winops.py: 4...

	* tests/xterm_winops.py: 5...

	* tests/xterm_winops.py: 6...

	* tests/xterm_winops.py:
	partial repair for fvwm - down to 7 failures (no change for XQuartz)

	* escutil.py: add functions for new xterm controls

	* esccmd.py: add codes for new xterm controls

	* tests/xterm_winops.py:
	partly improved: I found that XQuartz is ignoring the maximize horz/vert
	calls though it honors fullscreen.  When switching to fvwm session, I
	get a bunch of regressions due to confusing pixels and chars.  Check this
	in, to focus on those...

	* tests/xterm_winops.py: another bogus test

	* tests/xterm_winops.py: 2 bogus tests fixed.

	* tests/xterm_winops.py: explain

	* tests/xterm_winops.py: fixed test

	* tests/ris.py: fix

	* tests/decset.py: corrected test

	* tests/save_restore_cursor.py: xterm #328 has fix for wraptest -

originally 2018-04-09

	* tests/decdc.py: perhaps he needs a better test...

	* tests/decfi.py, tests/decbi.py: clarified

	* tests/cht.py: test was wrong - fix

	* tests/bs.py: align with xterm #332

	* tests/dl.py: fixed

	* esc.py: add BEL, so I can send it in a test to pinpoint trace

	* tests/xterm_winops.py: comment-out - some fail, will revisit

	* tests/sd.py: works now :-)

	* tests/ich.py: works for me

originally 2018-04-10

	* tests/decrqm.py, esccmd.py: drop DECVSSM

	* escutil.py: *** empty log message ***

	* tests/decdsr.py: levels

	* escutil.py: fix his typo

	* tests/decscl.py, tests/decrqss.py: levels

	* esccmd.py:
	DECRQSS not found in vt320 manual (which is PDF only - no searching)

	* tests/decrqm.py, tests/vt.py, tests/vpr.py, tests/vpa.py, tests/su.py, tests/sos.py, tests/sm.py, tests/ris.py, esccmd.py, tests/s8c1t.py, tests/sd.py, tests/rm.py, tests/ri.py, tests/rep.py, tests/pm.py, tests/nel.py, tests/lf.py, tests/ind.py, tests/il.py, tests/ich.py, tests/hvp.py, tests/hpr.py, tests/hpa.py, tests/el.py, tests/ff.py, tests/ed.py, tests/ech.py, tests/dl.py, tests/decstbm.py, tests/decstr.py:
	levels

	* tests/decset.py, tests/decsera.py: levelsdecsel.py

	* tests/decsel.py, tests/decsed.py, tests/decscl.py, tests/decaln.py, tests/dcs.py, tests/apc.py, tests/dch.py, tests/cup.py, tests/cuf.py:
	levels

	* tests/cub.py, tests/cr.py, tests/cpl.py, tests/cnl.py, tests/cbt.py, tests/cht.py, tests/cha.py, tests/bs.py:
	level

	* tests/save_restore_cursor.py: check levels

	* tests/decrqm.py: filter out some of the "known bug" DECRQM

	* escutil.py, esccmd.py: better

	* escutil.py: better.

	* escutil.py: can't do DECRQCRA in a vt100...

	* tests/da.py, tests/decrqss.py: trim

	* tests/decrqss.py: better

	* tests/da.py: first cut/workable DA response

originally 2018-04-11

	* tests/deccra.py, tests/decdc.py, tests/decera.py, tests/decic.py, tests/decscl.py, tests/decset.py, tests/rep.py:
	not-xterm

	* tests/xterm_winops.py:
	python functions need parenthese - George pointed that out, and pylint too

	* tests/da2.py: match xterm's default behavior

originally 2018-04-12

	* escio.py, tests/dl.py, tests/hpa.py, tests/hvp.py, tests/ich.py, tests/sd.py, tests/ff.py, tests/ech.py, tests/ed.py, tests/el.py, tests/lf.py, tests/reset_color.py, tests/reset_special_color.py, tests/tbc.py, tests/vpa.py, tests/vpr.py, tests/decset.py, tests/decstbm.py, tests/decstr.py, tests/decscl.py, tests/decsed.py, tests/decsel.py, tests/decdsr.py, tests/decera.py, tests/decfi.py, tests/decfra.py, tests/decic.py, tests/decid.py, tests/decrqm.py, tests/decrqss.py, tests/il.py, tests/ris.py, tests/rm.py, tests/s8c1t.py, tests/sm_title.py, tests/vt.py, tests/xterm_winops.py, tests/rep.py, tests/su.py, tests/decbi.py, tests/deccra.py, tests/decdc.py, tests/dcs.py, tests/decaln.py, tests/dch.py, tests/cub.py, tests/cuf.py, tests/cup.py, tests/da2.py, tests/cr.py, tests/cha.py, tests/change_special_color.py, tests/change_dynamic_color.py, tests/change_color.py, tests/cbt.py, tests/bs.py, tests/ansirc.py, escutil.py, esclog.py, esc.py:
	pylint-fixes

originally 2018-04-14

	* tests/save_restore_cursor.py: tidy

	* tests/decbi.py: use double-quotes for docstring

	* tests/decfi.py, tests/decdc.py: docstring

	* tests/decbi.py: comments vs docstring

	* tests/decset.py: remove obsolete comment

	* tests/xterm_winops.py: remove redundant reset

	* tests/ris.py, tests/decset.py, tests/rep.py, tests/sd.py:
	remove comment vs xterm

	* tests/decset.py: no blank before docstring

	* tests/decdsr.py: fix a symbol conflict

originally 2018-04-15

	* tests/xterm_winops.py:
	Nachman's objecting to use of char-sizes when he asked for pixels.
	Start refactoring by using an if-statement to restore his original
	version (except for a couple of cases where the naming wasn't consistent,
	including one where the name was incorrect - seen with pylint).

originally 2018-04-17

	* tests/cht.py: document test_CHT_IgnoresScrollingRegion

	* tests/bs.py: explain reverse-wrap versus margins

	* tests/xterm_winops.py: fix per Nachman comment:
	- Move the call to unmaximize before the assertion to improve the odds of it happening in:
	  * test_XtermWinops_MaximizeWindow_Horizontally
	  * test_XtermWinops_MaximizeWindow_Vertically

	* escutil.py: change commented-out LogInfo to a LogDebug

	* tests/xterm_winops.py: fix per Nachman comment:
	- In test_XtermWinops_MaximizeWindow_HorizontallyAndVertically,
	move esccmd.XTERM_WINOPS(esccmd.WINOP_MAXIMIZE, esccmd.WINOP_MAXIMIZE_EXIT)
	to before the assertions. If they fail the window will be stuck maximized.

originally 2018-04-18

	* tests/xterm_winops.py:
	factor out average_width() and average_height(), fix whitespace per pylint

	* tests/xterm_winops.py:
	use absolute difference in some assert's for consistency, per Nachman comment

	* tests/sd.py:
	cite relevant standard for module docstring, fix whitespace per pylint

	* tests/save_restore_cursor.py:
	add docstring to test_SaveRestoreCursor_AltVsMain and
	test_SaveRestoreCursor_Wrap, and fix whitespace per pylint

	* tests/ris.py:
	add docstring to test_RIS_ResetDECCOLM, fix whitespace per pylint

	* tests/rep.py, tests/decfi.py, tests/decdc.py:
	cite relevant standard for module docstring, fix whitespace per pylint

	* tests/decdc.py:
	quote the relevant standard for test_DECDC_IsNoOpWhenCursorBeginsOutsideScrollRegion

	* tests/decbi.py:
	cite relevant standard for test_DECBI_LeftOfMargin and test_DECBI_WholeScreenScrolls

originally 2018-04-20

	* tests/xterm_winops.py:
	the remaining failed-test was due to inconsistent max_error value.

	* tests/xterm_winops.py:
	add/use delayAfterMove, delayAfterIcon, delayAfterResize, making all but
	the 2-way maximize work consistently with icewm

originally 2018-04-21

	* tests/xterm_winops.py:
	use checkActualPixelSize() for the remaining xterm-resizing tests involving
	resizing by pixels

	* tests/xterm_winops.py:
	refactor test_XtermWinops_ResizePixels_BothParameters() using new function
	checkActualPixelSize()

	* escutil.py: add GetFrameSizePixels()

	* escutil.py: cache the char/screen sizes, fix whitespace per pylint

originally 2018-04-22

	* tests/xterm_winops.py: factor out check_for_shrinkage()

	* tests/xterm_winops.py: factor out check_any_size

	* tests/xterm_winops.py: factor out check_actual_size_chars()

	* tests/xterm_winops.py:
	reduce delays, corrected a label on informational log

originally 2018-04-23

	* tests/xterm_winops.py:
	tighten pixel error-limit to 1 cell; seems to work with quartz-wm

	* escutil.py:
	add/use can_query_shell_size(), which will allow tightening the error-limits
	for xterm's window operations

	* escutil.py, tests/xterm_winops.py:
	change level of new debug-log calls

	* tests/xterm_winops.py:
	reducing delay after iconify caused a test-failure - undo that one.

	* tests/decdsr.py, tests/deccra.py, tests/decbi.py, tests/decaln.py, tests/dch.py, tests/da.py, tests/cup.py, tests/cr.py, tests/cha.py, tests/change_special_color.py, tests/apc.py, esctypes.py, esctest.py, escio.py, esccmd.py, escargs.py:
	fix whitespace per pylint

originally 2018-04-24

	* tests/sm_title.py, tests/__init__.py, tests/ed.py, tests/deccra.py, tests/vpr.py, tests/vt.py, tests/su.py, tests/sos.py, tests/nel.py, tests/pm.py, tests/ri.py, tests/rm.py, tests/s8c1t.py, tests/sm.py, tests/il.py, tests/ind.py, tests/lf.py, tests/fill_rectangle.py, tests/hpr.py, tests/hvp.py, tests/ich.py, tests/ff.py, tests/el.py, tests/ech.py, tests/dl.py, tests/decstr.py, tests/decstbm.py, tests/decset.py, tests/decsera.py, tests/decic.py, tests/decsel.py, tests/decsed.py, tests/decscl.py, tests/decrqm.py:
	fix whitespace per pylint

	* tests/xterm_winops.py:
	add documentation for the utility functions used for xterm-tests

	* README.txt:
	the section on xterm configuration options was incomplete.  Adapted from
	cfg-esctest/cfg-esctest-wide scripts.

	* README.txt:
	cite DEC standards documentation, which is used in xterm versus the
	programmer reference manuals which give insight into differences between
	terminal models but are not authoritative.  Also mention an old bug-fix.

originally 2018-04-25

	* tests/xterm_winops.py, escutil.py: stylistic change per Nachman

	* tests/ris.py:
	trim comment for iTerm2 vs ALTBUF, overlooked change in master by Nachman

	* tests/decset.py:
	remove an overlooked/obsolete comment for test_DECSET_DECLRMM()

	* escutil.py:
	if the terminal is not xterm, GetScreenSizePixels() will just return a
	fixed size, suggested by Nachman

	* escutil.py: stylistic change per Nachman

George's modifications prior to commit:
* Update README to conform to formatting style.
* Remove --disable-xterm-checksum-bug since xterm has been fixed
  • Loading branch information
ThomasDickey authored and gnachman committed May 7, 2018
1 parent 45b19a1 commit cbf6b88e95a70d3e304f365cec64174314841270
Showing 81 changed files with 2,150 additions and 1,378 deletions.
@@ -9,8 +9,19 @@ opinion."
The tested set of control sequences are documented somewhat tersely at this URL:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

The official documentation for DEC-supported escape sequences is here:
http://www.vt100.net/docs/vt510-rm/.
In its references section, the xterm control sequences summary lists several
more extensive documents, with which developers are expected to be familiar.

Among those are manuals for VT100 through VT420 and VT510, for example:
http://www.vt100.net/docs/vt510-rm/

DEC's standard for video terminals is here:
http://www.bitsavers.org/pdf/dec/standards/EL-SM070-00_DEC_STD_070_Video_Systems_Reference_Manual_Dec91.pdf

Some of the later programmer reference manuals do not agree with the standard in
what appears to be an editorial blunder, as noted in the xterm control sequences
document. In cases where programmer manuals differ from with the video standards
document, the latter is used.

All tests are automatic; no user interaction is required. As a consequence, some
control sequences cannot be tested. For example, it is impossible to examine the
@@ -20,9 +31,29 @@ cursor position; these form the bulk of the tests.

Notes on xterm
--------------
You should build xterm yourself and configure it with --enable-dec-locator. Some
tests will fail unless it is provided. Most other configuration settings are not
tested and may or may not cause problems.
These tests are sensitive to whether xterm was compiled with Unicode support and
if it supports more than 16 colors. As of xterm patch 332, there are two sets of
configuration options:

Use these options when testing without Unicode:

--enable-dec-locator
--disable-256-color
--disable-direct-color
--disable-88-color
--disable-luit
--disable-wide-chars
--disable-mini-luit

Use these options when testing with Unicode:

--enable-dec-locator
--disable-256-color
--disable-direct-color
--disable-88-color

Most other configuration settings are not tested and may or may not cause
problems.

Notes on iTerm2
---------------
@@ -55,11 +86,6 @@ Selects the action that the test framework performs.
and --expected-terminal) that have known bugs. This is useful when looking for
looking for bugs to fix in your terminal.

--disable-xterm-checksum-bug
xterm's implementation of DECRQCRA (as of patch 314) contains a bug. DECRQCRA is
essential to these tests. By default, a workaround for the bug is used. If it is
fixed in the future, this flag should be given until the workaround is dropped.

--include=regex
Only tests whose name matches "regex" will be run.

@@ -1,6 +1,7 @@
import escargs

NUL = chr(0)
BEL = chr(7)
BS = chr(8)
TAB = chr(9)
LF = chr(10)
@@ -18,8 +19,8 @@
vtLevel = 1

def blank():
if escargs.args.expected_terminal == "xterm":
return ' '
else:
return NUL
if escargs.args.expected_terminal == "xterm":
return ' '
else:
return NUL

@@ -6,13 +6,10 @@
XTERM_WINOPS_ENABLED = "xtermWinopsEnabled"
DISABLE_WIDE_CHARS = "disableWideChars"

ACTION_RUN="run"
ACTION_LIST_KNOWN_BUGS="list-known-bugs"
ACTION_RUN = "run"
ACTION_LIST_KNOWN_BUGS = "list-known-bugs"

parser = argparse.ArgumentParser()
parser.add_argument("--disable-xterm-checksum-bug",
help="Don't use buggy parameter order for DECRQCRA",
action="store_true")
parser.add_argument("--include",
help="Regex for names of tests to run.",
default=".*")
@@ -24,8 +21,8 @@
help="Print logs after finishing?",
action="store_true")
parser.add_argument("--test-case-dir",
help="Create files with test cases in the specified directory",
default=None)
help="Create files with test cases in the specified directory",
default=None)
parser.add_argument("--stop-on-failure",
help="Stop running tests after a failure.",
action="store_true")
@@ -35,7 +32,7 @@
parser.add_argument("--options",
help="Space-separated options that are enabled.",
nargs="+",
choices=[ XTERM_WINOPS_ENABLED, DISABLE_WIDE_CHARS ])
choices=[XTERM_WINOPS_ENABLED, DISABLE_WIDE_CHARS])
parser.add_argument("--max-vt-level",
help="Do not run tests requiring a higher VT level than this.",
type=int,
@@ -50,7 +47,7 @@
parser.add_argument("--action",
help="Action to perform.",
default=ACTION_RUN,
choices=[ ACTION_RUN, ACTION_LIST_KNOWN_BUGS ])
choices=[ACTION_RUN, ACTION_LIST_KNOWN_BUGS])
parser.add_argument("--timeout",
help="Timeout for reading reports from terminal.",
default=1,

0 comments on commit cbf6b88

Please sign in to comment.