From ddf3da629c48e540c1f078ca7097fa82d82d1a70 Mon Sep 17 00:00:00 2001 From: Mark Tearle Date: Mon, 27 Apr 2015 17:29:29 +0800 Subject: [PATCH] Add tmux to RunTestEnvironment (initial scaffold) --- scripts/RunTestEnvironment.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/scripts/RunTestEnvironment.sh b/scripts/RunTestEnvironment.sh index 01dd906..afdb9a4 100755 --- a/scripts/RunTestEnvironment.sh +++ b/scripts/RunTestEnvironment.sh @@ -1,6 +1,6 @@ #!/bin/bash -# InitialConfig.sh +# RunTestEnvironment.sh # This script will run a test environment inside tmux @@ -19,7 +19,21 @@ set -e # If an error occurs, the abort() function will be called. #---------------------------------------------------------- - # Done! trap : 0 +# Start new tmux session + +tmux new -d -s uccvend + +tmux new-window -t uccvend:1 -n 'dispense' 'watch date' +tmux new-window -t uccvend:2 -n 'Vendserver' 'watch date' +tmux new-window -t uccvend:3 -n 'virtualsnack' 'watch date' +tmux new-window -t uccvend:4 -n 'virtualcoke' 'watch date' + +tmux new-window -t uccvend:5 -n 'Shell' + + +tmux select-window -t uccvend:5 +tmux -2 attach-session -t uccvend + -- 2.20.1