-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_wave.sh
More file actions
executable file
·43 lines (33 loc) · 864 Bytes
/
run_wave.sh
File metadata and controls
executable file
·43 lines (33 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
PATH_LOADGEN="/vagrant/loadGen"
TARGET="http://192.168.50.50/videos/bbb-mp4.mpd"
Help()
{
# Display Help
echo "Syntax: run_wave.sh [-l|h|V]"
echo "options:"
echo "-l load model."
echo "-h Print this Help."
echo "-V Print software version and exit."
echo
}
if [ $1 == "-l" ]; then
if [ $2 == "sinusoid" ]; then
A=$3 #Amplitude
P=$4 #Period
D=$5 #Duration
L=$6 #Lambd
#Run sinusoid loadGen model
python3 $PATH_LOADGEN/$2/$2.py -s $A,$P $D $L -l $TARGET
fi
if [ $2 == "flashcrowd" ]; then
Rnorm=$3 #Normal load
S=$4 #Shock Level
n=$5 #Constant from rampdown
#Run flashcrowd loadGen model
python3 $PATH_LOADGEN/$2/$2.py -f $Rnorm,$S,$n -l $TARGET
fi
fi
if [ $1 == "-h" ]; then
Help
fi