diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-06 14:33:35 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:15 +0200 |
commit | ab6a92ee7bb847b30ba2487b782238f7051903ac (patch) | |
tree | ab12962717960366bdf27fafda1ae60d286b93ee /gnulib-local/tests | |
parent | 24d7e8f2154e58b9769104f04e6a8ced69d508eb (diff) | |
download | external_gettext-ab6a92ee7bb847b30ba2487b782238f7051903ac.zip external_gettext-ab6a92ee7bb847b30ba2487b782238f7051903ac.tar.gz external_gettext-ab6a92ee7bb847b30ba2487b782238f7051903ac.tar.bz2 |
Use 4 possible expected results instead of just one, due to variations in
the behaviour of TERM=xterm.
Diffstat (limited to 'gnulib-local/tests')
-rwxr-xr-x | gnulib-local/tests/test-term-ostream-xterm | 13 | ||||
-rw-r--r-- | gnulib-local/tests/test-term-ostream-xterm-8bit.out | 131 | ||||
-rw-r--r-- | gnulib-local/tests/test-term-ostream-xterm-basic.out (renamed from gnulib-local/tests/test-term-ostream-xterm.out) | 0 | ||||
-rw-r--r-- | gnulib-local/tests/test-term-ostream-xterm-r6.out | 131 | ||||
-rw-r--r-- | gnulib-local/tests/test-term-ostream-xterm-xf86-v32.out | 131 |
5 files changed, 405 insertions, 1 deletions
diff --git a/gnulib-local/tests/test-term-ostream-xterm b/gnulib-local/tests/test-term-ostream-xterm index 2b7c747..2d4c656 100755 --- a/gnulib-local/tests/test-term-ostream-xterm +++ b/gnulib-local/tests/test-term-ostream-xterm @@ -6,8 +6,19 @@ trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles out" TERM=xterm ./test-term-ostream > out +# There are several variants of the "xterm" terminal description floating +# around, each with a different sgr0 escape sequence. Use "infocmp -l -1 xterm" +# to inspect the escape sequences of xterm on your platform. +# xterm-r6: sgr0=\E[m +# xterm-xf86-v32: sgr0=\E[m\017 +# xterm-basic: sgr0=\E(B\E[m +# xterm-8bit: sgr0=\2330m\E(B + : ${DIFF=diff} -${DIFF} ${srcdir}/test-term-ostream-xterm.out out > /dev/null + ${DIFF} ${srcdir}/test-term-ostream-xterm-r6.out out > /dev/null \ +|| ${DIFF} ${srcdir}/test-term-ostream-xterm-xf86-v32.out out > /dev/null \ +|| ${DIFF} ${srcdir}/test-term-ostream-xterm-basic.out out > /dev/null \ +|| ${DIFF} ${srcdir}/test-term-ostream-xterm-8bit.out out > /dev/null result=$? rm -fr $tmpfiles diff --git a/gnulib-local/tests/test-term-ostream-xterm-8bit.out b/gnulib-local/tests/test-term-ostream-xterm-8bit.out new file mode 100644 index 0000000..671a07f --- /dev/null +++ b/gnulib-local/tests/test-term-ostream-xterm-8bit.out @@ -0,0 +1,131 @@ +Colors (foreground/background): + |black |blue |green |cyan |red |magenta|yellow |white |default +black |[30m[40m Words ›39;49m|[30m[44m Words ›39;49m|[30m[42m Words ›39;49m|[30m[46m Words ›39;49m|[30m[41m Words ›39;49m|[30m[45m Words ›39;49m|[30m[43m Words ›39;49m|[30m[47m Words ›39;49m|[30m Words ›39;49m +blue |[34m[40m Words ›39;49m|[34m[44m Words ›39;49m|[34m[42m Words ›39;49m|[34m[46m Words ›39;49m|[34m[41m Words ›39;49m|[34m[45m Words ›39;49m|[34m[43m Words ›39;49m|[34m[47m Words ›39;49m|[34m Words ›39;49m +green |[32m[40m Words ›39;49m|[32m[44m Words ›39;49m|[32m[42m Words ›39;49m|[32m[46m Words ›39;49m|[32m[41m Words ›39;49m|[32m[45m Words ›39;49m|[32m[43m Words ›39;49m|[32m[47m Words ›39;49m|[32m Words ›39;49m +cyan |[36m[40m Words ›39;49m|[36m[44m Words ›39;49m|[36m[42m Words ›39;49m|[36m[46m Words ›39;49m|[36m[41m Words ›39;49m|[36m[45m Words ›39;49m|[36m[43m Words ›39;49m|[36m[47m Words ›39;49m|[36m Words ›39;49m +red |[31m[40m Words ›39;49m|[31m[44m Words ›39;49m|[31m[42m Words ›39;49m|[31m[46m Words ›39;49m|[31m[41m Words ›39;49m|[31m[45m Words ›39;49m|[31m[43m Words ›39;49m|[31m[47m Words ›39;49m|[31m Words ›39;49m +magenta|[35m[40m Words ›39;49m|[35m[44m Words ›39;49m|[35m[42m Words ›39;49m|[35m[46m Words ›39;49m|[35m[41m Words ›39;49m|[35m[45m Words ›39;49m|[35m[43m Words ›39;49m|[35m[47m Words ›39;49m|[35m Words ›39;49m +yellow |[33m[40m Words ›39;49m|[33m[44m Words ›39;49m|[33m[42m Words ›39;49m|[33m[46m Words ›39;49m|[33m[41m Words ›39;49m|[33m[45m Words ›39;49m|[33m[43m Words ›39;49m|[33m[47m Words ›39;49m|[33m Words ›39;49m +white |[37m[40m Words ›39;49m|[37m[44m Words ›39;49m|[37m[42m Words ›39;49m|[37m[46m Words ›39;49m|[37m[41m Words ›39;49m|[37m[45m Words ›39;49m|[37m[43m Words ›39;49m|[37m[47m Words ›39;49m|[37m Words ›39;49m +default|[40m Words ›39;49m|[44m Words ›39;49m|[42m Words ›39;49m|[46m Words ›39;49m|[41m Words ›39;49m|[45m Words ›39;49m|[43m Words ›39;49m|[47m Words ›39;49m| Words + +Colors (hue/saturation): +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[43m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[42m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[46m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[44m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[45m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m +[41m [47m ›39;49m + +Weights: +normal, ›1mbold, ›0m(Bdefault + +Postures: +normal, italic, default + +Text decorations: +normal, ›4munderlined, ›24mdefault + diff --git a/gnulib-local/tests/test-term-ostream-xterm.out b/gnulib-local/tests/test-term-ostream-xterm-basic.out index 1d6d3a3..1d6d3a3 100644 --- a/gnulib-local/tests/test-term-ostream-xterm.out +++ b/gnulib-local/tests/test-term-ostream-xterm-basic.out diff --git a/gnulib-local/tests/test-term-ostream-xterm-r6.out b/gnulib-local/tests/test-term-ostream-xterm-r6.out new file mode 100644 index 0000000..240de88 --- /dev/null +++ b/gnulib-local/tests/test-term-ostream-xterm-r6.out @@ -0,0 +1,131 @@ +Colors (foreground/background): + |black |blue |green |cyan |red |magenta|yellow |white |default +black | Words | Words | Words | Words | Words | Words | Words | Words | Words +blue | Words | Words | Words | Words | Words | Words | Words | Words | Words +green | Words | Words | Words | Words | Words | Words | Words | Words | Words +cyan | Words | Words | Words | Words | Words | Words | Words | Words | Words +red | Words | Words | Words | Words | Words | Words | Words | Words | Words +magenta| Words | Words | Words | Words | Words | Words | Words | Words | Words +yellow | Words | Words | Words | Words | Words | Words | Words | Words | Words +white | Words | Words | Words | Words | Words | Words | Words | Words | Words +default| Words | Words | Words | Words | Words | Words | Words | Words | Words + +Colors (hue/saturation): + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Weights: +normal, [1mbold, [mdefault + +Postures: +normal, italic, default + +Text decorations: +normal, [4munderlined, [mdefault + diff --git a/gnulib-local/tests/test-term-ostream-xterm-xf86-v32.out b/gnulib-local/tests/test-term-ostream-xterm-xf86-v32.out new file mode 100644 index 0000000..6e7465d --- /dev/null +++ b/gnulib-local/tests/test-term-ostream-xterm-xf86-v32.out @@ -0,0 +1,131 @@ +Colors (foreground/background): + |black |blue |green |cyan |red |magenta|yellow |white |default +black |[30m[40m Words [39;49m|[30m[44m Words [39;49m|[30m[42m Words [39;49m|[30m[46m Words [39;49m|[30m[41m Words [39;49m|[30m[45m Words [39;49m|[30m[43m Words [39;49m|[30m[47m Words [39;49m|[30m Words [39;49m +blue |[34m[40m Words [39;49m|[34m[44m Words [39;49m|[34m[42m Words [39;49m|[34m[46m Words [39;49m|[34m[41m Words [39;49m|[34m[45m Words [39;49m|[34m[43m Words [39;49m|[34m[47m Words [39;49m|[34m Words [39;49m +green |[32m[40m Words [39;49m|[32m[44m Words [39;49m|[32m[42m Words [39;49m|[32m[46m Words [39;49m|[32m[41m Words [39;49m|[32m[45m Words [39;49m|[32m[43m Words [39;49m|[32m[47m Words [39;49m|[32m Words [39;49m +cyan |[36m[40m Words [39;49m|[36m[44m Words [39;49m|[36m[42m Words [39;49m|[36m[46m Words [39;49m|[36m[41m Words [39;49m|[36m[45m Words [39;49m|[36m[43m Words [39;49m|[36m[47m Words [39;49m|[36m Words [39;49m +red |[31m[40m Words [39;49m|[31m[44m Words [39;49m|[31m[42m Words [39;49m|[31m[46m Words [39;49m|[31m[41m Words [39;49m|[31m[45m Words [39;49m|[31m[43m Words [39;49m|[31m[47m Words [39;49m|[31m Words [39;49m +magenta|[35m[40m Words [39;49m|[35m[44m Words [39;49m|[35m[42m Words [39;49m|[35m[46m Words [39;49m|[35m[41m Words [39;49m|[35m[45m Words [39;49m|[35m[43m Words [39;49m|[35m[47m Words [39;49m|[35m Words [39;49m +yellow |[33m[40m Words [39;49m|[33m[44m Words [39;49m|[33m[42m Words [39;49m|[33m[46m Words [39;49m|[33m[41m Words [39;49m|[33m[45m Words [39;49m|[33m[43m Words [39;49m|[33m[47m Words [39;49m|[33m Words [39;49m +white |[37m[40m Words [39;49m|[37m[44m Words [39;49m|[37m[42m Words [39;49m|[37m[46m Words [39;49m|[37m[41m Words [39;49m|[37m[45m Words [39;49m|[37m[43m Words [39;49m|[37m[47m Words [39;49m|[37m Words [39;49m +default|[40m Words [39;49m|[44m Words [39;49m|[42m Words [39;49m|[46m Words [39;49m|[41m Words [39;49m|[45m Words [39;49m|[43m Words [39;49m|[47m Words [39;49m| Words + +Colors (hue/saturation): +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[43m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[42m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[46m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[44m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[45m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m +[41m [47m [39;49m + +Weights: +normal, [1mbold, [mdefault + +Postures: +normal, italic, default + +Text decorations: +normal, [4munderlined, [24mdefault + |