Mercurial > public > mercurial-scm > hg
diff tests/test-status-color.t @ 14757:f0b047a24c57 stable
tests: hardcode terminfo entry for the terminfo color test
For the terminfo color test, make sure that the terminfo entry used is one
of our own choosing, by delivering a special "hgterm" entry (a copy of
ncurses' xterm-color), compiling it, and specifically pointing curses to it
using the TERMINFO and TERM environment variables. This means we can
ignore the variability in different terminal definitions on different
platforms.
author | Danek Duvall <duvall@comfychair.org> |
---|---|
date | Mon, 27 Jun 2011 11:36:40 -0700 |
parents | b083d00578bf |
children | 2371f4aea665 117f9190c1ba |
line wrap: on
line diff
--- a/tests/test-status-color.t Sun Jun 26 15:47:39 2011 -0300 +++ b/tests/test-status-color.t Mon Jun 27 11:36:40 2011 -0700 @@ -167,7 +167,9 @@ hg status -A (with terminfo color): - $ TERM=xterm hg status --config color.mode=terminfo --color=always -A + $ mkdir $TESTTMP/terminfo + $ TERMINFO=$TESTTMP/terminfo tic $TESTDIR/hgterm.ti + $ TERM=hgterm TERMINFO=$TESTTMP/terminfo hg status --config color.mode=terminfo --color=always -A \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc) \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc) \x1b[30m\x1b[30m modified\x1b[30m (esc)