-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestsuite
executable file
·80 lines (75 loc) · 2.09 KB
/
testsuite
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
# Test suite for Airport Scheduling, runs many many tests.
PATH="/home/user001/dev/gen/project/AirportScheduling"
FITNESSFUNCTION="FUEL TIME"
SELECTORFUNCTION="FITTEST TOURNAMENT ROULETTE"
MUTATORFUNCTION="SIMPLE SUBTRACT ADD COMBO"
COMBINATORFUNCTION="SIMPLE RANDOM AVERAGE BLOCK TIME"
PLANESIZES="10 50 100 200 500 1000"
POPULATIONSIZE=250
#PLANESIZES="10"
#POPULATIONSIZES="25"
#echo "Starting Fitness Function test" >> testresult
#for ((i=0;i<3;i+=1));
#do
# echo "Fitness testrun: '$i'" >> testresult
# for a in $FITNESSFUNCTION
# do
# for e in $PLANESIZES
# do
# output=`$PATH/bin/AirportScheduler -csv --no-results -G 100 -P $POPULATIONSIZE -p $e -F $a huge_testfile`
# echo $output
# echo $output >> testresult
# done
# done
#done
#
#echo "Starting Selector Function test" >> testresult
#
for ((i=0;i<3;i+=1));
do
echo "Selector testrun: '$i'" >> testresult
for b in $SELECTORFUNCTION
do
for e in $PLANESIZES
do
output=`$PATH/bin/AirportScheduler -csv --no-results -G 100 -P $POPULATIONSIZE -p $e -S $b huge_testfile`
echo $output
echo $output >> testresult
done
done
done
#
#echo "Starting mutator Function test" >> testresult
#for ((i=0;i<3;i+=1));
#do
# echo "Selector testrun: '$i'" >> testresult
# for c in $MUTATORFUNCTION
# do
# for e in $PLANESIZES
# do
# output=`$PATH/bin/AirportScheduler -csv --no-results -G 100 -P $POPULATIONSIZE -p $e -M $c huge_testfile`
# echo $output
# echo $output >> testresult
# done
# done
#done
#
#echo "Starting combinator Function test" >> testresult
#for ((i=0;i<3;i+=1));
#do
# echo "Selector testrun: '$i'" >> testresult
# for d in $COMBINATORFUNCTION
# do
# for e in $PLANESIZES
# do
# output=`$PATH/bin/AirportScheduler -csv --no-results -G 100 -P $POPULATIONSIZE -p $e -C $d huge_testfile`
# echo $output
# echo $output >> testresult
# done
# done
#done
#
#echo "Test Suite is finished"
#
exit 0