summaryrefslogtreecommitdiffstats
path: root/debian/tests/smoketest
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:41:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:41:01 +0000
commita1c8c315b487542ec54c92c091f3f4ab5644fb54 (patch)
treeb68af5b092e9f2ca59caea1252a6babf78283bf6 /debian/tests/smoketest
parentAdding upstream version 3.3a. (diff)
downloadtmux-a1c8c315b487542ec54c92c091f3f4ab5644fb54.tar.xz
tmux-a1c8c315b487542ec54c92c091f3f4ab5644fb54.zip
Adding debian version 3.3a-3.debian/3.3a-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/smoketest')
-rwxr-xr-xdebian/tests/smoketest17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/smoketest b/debian/tests/smoketest
new file mode 100755
index 0000000..414ac35
--- /dev/null
+++ b/debian/tests/smoketest
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+SESSION="test_session"
+
+if tmux list-sessions 2>/dev/null; then
+ echo >&2 "Found unexpected tmux session"
+ exit 1
+fi
+tmux new-session -d -s $SESSION
+tmux list-sessions | grep -q $SESSION >/dev/null
+tmux kill-session -t $SESSION
+if tmux list-sessions 2>/dev/null; then
+ echo >&2 "Found unexpected tmux session"
+ exit 1
+fi