summaryrefslogtreecommitdiffstats
path: root/debian/tests/smoketest
blob: 414ac35752a19c4d93466b050f675acc1f4d634f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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