aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar John Hood <cgull@glup.org>2017-11-07 23:37:44 -0500
committerGravatar John Hood <cgull@glup.org>2017-11-08 19:50:35 -0500
commitcbca234b385cb7a5e8d3c4507f637c2ac02be8f6 (patch)
tree1d9fa9f0e3cb25c23cd582e2c46bbb6476c819ee /src
parent968d56f88525f8d44e798d0f4a29dd219085d68f (diff)
Add a separate test for BCE
This test is properly gated on tmux 2.4.
Diffstat (limited to 'src')
-rw-r--r--src/tests/Makefile.am1
l---------src/tests/emulation-attributes-bce.test1
-rwxr-xr-xsrc/tests/emulation-attributes.test14
3 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index e53b316..4863af6 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -20,6 +20,7 @@ displaytests = \
emulation-attributes-256color8.test \
emulation-attributes-256color248.test \
emulation-attributes-truecolor.test \
+ emulation-attributes-bce.test \
emulation-back-tab.test \
emulation-cursor-motion.test \
emulation-multiline-scroll.test \
diff --git a/src/tests/emulation-attributes-bce.test b/src/tests/emulation-attributes-bce.test
new file mode 120000
index 0000000..03c0a01
--- /dev/null
+++ b/src/tests/emulation-attributes-bce.test
@@ -0,0 +1 @@
+emulation-attributes.test \ No newline at end of file
diff --git a/src/tests/emulation-attributes.test b/src/tests/emulation-attributes.test
index dbc413c..e4ba2f3 100755
--- a/src/tests/emulation-attributes.test
+++ b/src/tests/emulation-attributes.test
@@ -20,6 +20,12 @@ if [ "$(basename "$0")" = emulation-attributes-truecolor.test ] &&
printf "tmux does not support true color\n" >&2
exit 77
fi
+# Need 2.4 for BCE support
+if [ "$(basename "$0")" = emulation-attributes-bce.test ] &&
+ ! tmux_check 2 4; then
+ printf "tmux does not support BCE\n" >&2
+ exit 77
+fi
# Top-level wrapper.
if [ $# -eq 0 ]; then
@@ -117,6 +123,14 @@ baseline()
echo "Bold, italic and underline:"
test_true_color 1 3 4
;;
+ # BCE in combination with various color modes.
+ bce)
+ # True color.
+ printf '\033[48;2;255;0;255m\033[H\033[JTrue color\n'
+ printf '\033[48;5;32m\033[J256 color\n'
+ printf '\033[42m\033[J16 color\n'
+ printf '\033[0mdone\n'
+ ;;
*)
fail "unknown test name %s\n" "$1"
;;