summaryrefslogtreecommitdiffstats
path: root/gnulib-local/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-06 14:33:35 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:15 +0200
commitab6a92ee7bb847b30ba2487b782238f7051903ac (patch)
treeab12962717960366bdf27fafda1ae60d286b93ee /gnulib-local/tests
parent24d7e8f2154e58b9769104f04e6a8ced69d508eb (diff)
downloadexternal_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-xgnulib-local/tests/test-term-ostream-xterm13
-rw-r--r--gnulib-local/tests/test-term-ostream-xterm-8bit.out131
-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.out131
-rw-r--r--gnulib-local/tests/test-term-ostream-xterm-xf86-v32.out131
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 | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+blue | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+green | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+cyan | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+red | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+magenta| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+yellow | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+white | Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m
+default| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words ›39;49m| Words
+
+Colors (hue/saturation):
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›39;49m
+  ›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, bold, default
+
+Postures:
+normal, italic, default
+
+Text decorations:
+normal, underlined, default
+
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 | 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, bold, default
+
+Postures:
+normal, italic, default
+
+Text decorations:
+normal, underlined, default
+