summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre GRANDIN <grandinp@altern.org>2015-02-19 00:27:02 -0800
committerPierre GRANDIN <grandinp@altern.org>2015-02-19 00:27:02 -0800
commitaca53c232801bb5c2d4c3867dc98ce40c4efdf41 (patch)
tree6d168295b1b865a1e221ddd12bdb34857ebfb98a
parent3740304fd4132f375b0e074a4a345076cab9a1a9 (diff)
downloadnavit-aca53c232801bb5c2d4c3867dc98ce40c4efdf41.tar.gz
Added test.sh
-rw-r--r--test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100644
index 000000000..98ff13052
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,20 @@
+tmux new-session -s "compute-${rack}" -n "compute-${rack}" -d
+for i in 1 2; do
+ tmux new-window -t "compute-${rack}:$i" -n "cpt-$i"
+done
+
+tmux select-window -t "compute-${rack}:1"
+
+
+i=1
+tmux send-keys -t :cpt-$i "cd ~/navit/navit/bin/navit/ && DISPLAY=:99 ./navit; exit" Enter
+tmux join-pane -s :cpt-$i
+tmux select-layout tiled
+
+i=2
+tmux send-keys -t :cpt-$i "sleep 5; pkill navit; tmux kill-session" Enter
+tmux join-pane -s :cpt-$i
+tmux select-layout tiled
+
+#tmux set-window-option synchronize-panes
+tmux -2 attach-session -t "compute-${rack}"