-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestsComponents.sh
40 lines (35 loc) · 991 Bytes
/
testsComponents.sh
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
#!/bin/bash
# Automatic testing of various parameters to explore their impact on the unavailability
# Usage: ./test.sh
t=10000000
seed=56234
mlt=100
targetMlt=1100
d=0.9
targetD=1
echo `date` >> ./testResults/allComps.csv
echo 'T:' $t >> ./testResults/allComps.csv
echo 'seed:' $seed >> ./testResults/allComps.csv
while [ $mlt -le $targetMlt ]
do
mrt=1
targetMrt=1000
while [ $mrt -le $targetMrt ]
do
dProxy=90
targetDProxy=100
while [ $dProxy -le $targetDProxy ]
do
delta=10
targetDelta=100
while [ $delta -le $targetDelta ]
do
echo $mlt';'$mrt';0,'$dProxy';'$delta';'`./twoUnitWithInsp_v2 $mlt $mrt 0.$dProxy $delta $t $seed | sed -n -e 's/^.*= //p' | sed '/[0-9]\./s/\./,/g'` >> ./testResults/allComps.csv
let delta=$delta+10
done
let dProxy=$dProxy+1
done
let mrt=$mrt+50
done
let mlt=$mlt+50
done