forked from Victoriayhk/future_net
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathrun2.sh
executable file
·46 lines (41 loc) · 1.29 KB
/
run2.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
41
42
43
44
45
46
#compile选项自己的还是SDK 0:开源代码 1:自己的代码 2:东南代码
SDK_use="1"
#NAME[0]="case-semi-yi/PPT_Manual_basic/"
#NAME[0]="case-semi-yi/all_manual_wenyingjie/"
#NAME[0]="case-semi-yi/PPT_MANUAL_CHEN/"
#NAME[0]="case-semi-yi/night/"
#NAME[0]="case-semi-yi/nanhang_case/"
#NAME[0]="case-semi-yi/dongnan/"
#NAME[0]="case-semi-yi/chengyu/"
#NAME[0]="case-semi-yi/88/"
#NAME[0]="case-semi-yi/80/"
#NAME[0]="case-semi-yi/caseyy/"
#NAME[0]="case-semi-yi/dag/"
#NAME[0]="case-semi-yi/other2/"
#NAME[0]="case-semi-yi/huaweiData/"
NAME[0]="case-semi-yi/chen/"
length=${#NAME[@]}
./compile.sh $SDK_use
for ((i=0; i<$length; i++))
do
dir=${NAME[$i]}
filelist=`ls $dir`
for file in $filelist #for ((k=5; k<24; k++))
do
casedir=$dir$file
echo ${NAME[$i]}$file" : start" >> runout.txt
for ((j=0; j<1; j++))
do
#输出答案
topo=$casedir"/topo.csv" demand=$casedir"/demand.csv" result=$casedir"/result.csv"
./future_net $topo $demand $result >> runout.txt
#检测答案合法性
echo "********************** exam result ***********************" >> runout.txt
exam_result="exam_result1"
echo " Road0 Road1 repeat sumCost" >> runout.txt
./exam_result1 $topo $demand $result >> runout.txt
echo -e "\n\n" >> runout.txt
done
done
done
echo "all run over!"