-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·44 lines (31 loc) · 1.2 KB
/
run
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
#!/bin/bash
source environment.conf
opt_start=`date +%s`
./$promethee_path/run $promethee_path/samples/harness/input/ $promethee_path/samples/harness/meta/ $promethee_path/samples/harness/output/
opt_end=`date +%s`
let opt_exec_time=$opt_end-$opt_start
echo "Execution time of opt version: $opt_exec_time seconds"
flag_max=
if [ $is_max -eq 1 ]; then
flag_max=-ismax
fi
umbu_start=`date +%s`
# depending on function_type, we can have more parameters
if [ $function_type = linear ]; then
./$promethee_path/run -um random.tif $criterion_weight -type=$function_type -chunk=$chunk_size $flag_max $p_parameter
else
./$promethee_path/run -um random.tif $criterion_weight -type=$function_type -chunk=$chunk_size $flag_max $p_parameter $q_parameter
fi
umbu_end=`date +%s`
let umbu_exec_time=$umbu_end-$umbu_start
echo "Execution time of umbu version: $umbu_exec_time seconds"
if [ -d testharness ]; then
rm -rf testharness
fi
mkdir testharness
python $utils_path/tif-converter.py out.$test_name.tif
rm nxt.$test_name.tif
rm out.$test_name.tif
mv out.$test_name.txt testharness/
mv $promethee_path/samples/harness/output/netflow.txt testharness/
./$utils_path/comparator testharness/out.$test_name.txt testharness/netflow.txt