From: Mark Tearle Date: Mon, 27 Apr 2015 09:29:29 +0000 (+0800) Subject: Add tmux to RunTestEnvironment (initial scaffold) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ddf3da629c48e540c1f078ca7097fa82d82d1a70;p=uccvend-vagrant.git Add tmux to RunTestEnvironment (initial scaffold) --- 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 +