summaryrefslogtreecommitdiffstats
path: root/debian/tests/t/unicode-output.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:30:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:30:44 +0000
commit1d1b5c2a2854ce0385a89401c504711270c6f7a3 (patch)
tree045f1bf9d39fb409f8f9bc1a46ce2f8ee8c67908 /debian/tests/t/unicode-output.t
parentAdding upstream version 4.9.1. (diff)
downloadscreen-1d1b5c2a2854ce0385a89401c504711270c6f7a3.tar.xz
screen-1d1b5c2a2854ce0385a89401c504711270c6f7a3.zip
Adding debian version 4.9.1-1.debian/4.9.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/t/unicode-output.t')
-rw-r--r--debian/tests/t/unicode-output.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/tests/t/unicode-output.t b/debian/tests/t/unicode-output.t
new file mode 100644
index 0000000..e7d56e9
--- /dev/null
+++ b/debian/tests/t/unicode-output.t
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+echo 1..$(ls -1 $(dirname $0)/*.txt | wc -l)
+
+. `dirname $0`/boilerplate.sh
+
+LC_ALL=C.UTF-8
+export LC_ALL
+TERM=xterm
+export TERM
+
+for file in $(ls -1 $(dirname $0)/*.txt) ; do
+ echo === BEGIN $file ===
+ cat $file
+ echo === END $file ===
+ echo "=== BEGIN $file (escaped) ==="
+ cat -v $file
+ echo "=== END $file (escaped) ==="
+ script -c "$SCREEN cat $file" ${file}.output | cat -v
+ fgrep -F -f $file -q ${file}.output
+ check_exit_code_true Found contents of $file in ${file}.output
+ rm -f ${file}.output
+done