comparison 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
comparison
equal deleted inserted replaced
14756:fdcf6f09b68d 14757:f0b047a24c57
165 \x1b[0;0mC .hgignore\x1b[0m (esc) 165 \x1b[0;0mC .hgignore\x1b[0m (esc)
166 \x1b[0;0mC modified\x1b[0m (esc) 166 \x1b[0;0mC modified\x1b[0m (esc)
167 167
168 hg status -A (with terminfo color): 168 hg status -A (with terminfo color):
169 169
170 $ TERM=xterm hg status --config color.mode=terminfo --color=always -A 170 $ mkdir $TESTTMP/terminfo
171 $ TERMINFO=$TESTTMP/terminfo tic $TESTDIR/hgterm.ti
172 $ TERM=hgterm TERMINFO=$TESTTMP/terminfo hg status --config color.mode=terminfo --color=always -A
171 \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc) 173 \x1b[30m\x1b[32m\x1b[1mA added\x1b[30m (esc)
172 \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc) 174 \x1b[30m\x1b[32m\x1b[1mA copied\x1b[30m (esc)
173 \x1b[30m\x1b[30m modified\x1b[30m (esc) 175 \x1b[30m\x1b[30m modified\x1b[30m (esc)
174 \x1b[30m\x1b[31m\x1b[1mR removed\x1b[30m (esc) 176 \x1b[30m\x1b[31m\x1b[1mR removed\x1b[30m (esc)
175 \x1b[30m\x1b[36m\x1b[1m\x1b[4m! deleted\x1b[30m (esc) 177 \x1b[30m\x1b[36m\x1b[1m\x1b[4m! deleted\x1b[30m (esc)