Install lzip package to enable snackrom build process
[uccvend-vagrant.git] / scripts / RunTestEnvironment.sh
1 #!/bin/bash
2
3 # RunTestEnvironment.sh
4
5 # This script will run a test environment inside tmux
6
7 # error handling
8 abort()
9 {
10     echo >&2 '*** ABORTED ***'
11     echo "An error occurred. Exiting..." >&2
12     exit 1
13 }
14
15 trap 'abort' 0
16
17 set -e
18
19 # If an error occurs, the abort() function will be called.
20 #----------------------------------------------------------
21
22 # Done!
23 trap : 0
24
25 # Start new tmux session
26
27 tmux new -d -s uccvend
28
29 tmux new-window -t uccvend:1 -n 'dispense' 'watch date'
30 tmux new-window -t uccvend:2 -n 'Vendserver' 'watch date'
31 tmux new-window -t uccvend:3 -n 'virtualsnack' 'watch date'
32 tmux new-window -t uccvend:4 -n 'virtualcoke' 'watch date'
33
34 tmux new-window -t uccvend:5 -n 'Shell' 
35  
36  
37 tmux select-window -t uccvend:5
38 tmux -2 attach-session -t uccvend
39

UCC git Repository :: git.ucc.asn.au