From 9702d1cf5a3ca99e7569113bd6e62883283f68fb Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 17 Mar 2019 15:23:53 -0700 Subject: [PATCH] Add plumbing for running esctest --- .gitignore | 1 + .gitmodules | 3 +++ ci/esctest | 1 + ci/run-esctest.sh | 8 ++++++++ term/src/terminalstate.rs | 2 ++ 5 files changed, 15 insertions(+) create mode 160000 ci/esctest create mode 100755 ci/run-esctest.sh diff --git a/.gitignore b/.gitignore index 6e32e06f8..dd5996d0d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /target/ **/*.rs.bk .*.sw* +/esctest.log diff --git a/.gitmodules b/.gitmodules index 58bb7861d..330b8a4ab 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "harfbuzz/harfbuzz"] path = ci/harfbuzz url = https://github.com/harfbuzz/harfbuzz.git +[submodule "ci/esctest"] + path = ci/esctest + url = https://gitlab.freedesktop.org/terminal-wg/esctest diff --git a/ci/esctest b/ci/esctest new file mode 160000 index 000000000..c75fe263b --- /dev/null +++ b/ci/esctest @@ -0,0 +1 @@ +Subproject commit c75fe263b4c9300535b33d0ae494141a4cf63f9b diff --git a/ci/run-esctest.sh b/ci/run-esctest.sh new file mode 100755 index 000000000..9fbd73457 --- /dev/null +++ b/ci/run-esctest.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -x +export RUST_BACKTRACE=1 +cargo run -- start --front-end null -- python -B ./ci/esctest/esctest/esctest.py \ + --expected-terminal=xterm \ + --v=3 \ + --timeout=0.1 \ + --logfile=esctest.log diff --git a/term/src/terminalstate.rs b/term/src/terminalstate.rs index 33f1cecb7..d21b56da8 100644 --- a/term/src/terminalstate.rs +++ b/term/src/terminalstate.rs @@ -1409,6 +1409,8 @@ impl TerminalState { let response = Window::ResizeWindowCells { width, height }; write!(host.writer(), "{}", CSI::Window(response)).ok(); } + Window::Iconify | Window::DeIconify => {}, + Window::PopIconAndWindowTitle => {}, _ => eprintln!("unhandled Window CSI {:?}", window), } }