-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestFile.sh
44 lines (31 loc) · 912 Bytes
/
testFile.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
#!/bin/bash
#run using
#not sure if this will help anyone but me
#bash testFile.sh <java/python> <program name>
testPath="../testcases"
ter="terrain.png"
el="mpp.txt"
route="path.txt"
PROG="$1 $2"
#routesArr=( )
routesArr=("brown" "red" "white" )
testArr=("distanceCalcX" "distanceCalcY" "doubleback" "serpentine" "serpentineWater" "stripWater" "stripElevation" "elevation")
#testArr=( "stripElevation")
#testArr=("distanceCalcX" "distanceCalcY" "elevation")
#testArr=("winter")
declare -a arr=()
i="normal"
for route in "${routesArr[@]}"; do
arr+=("$PROG $testPath/$i/$ter $testPath/$i/$el $testPath/$i/$route.txt $i$route.png")
done
route="path"
for i in "${testArr[@]}"; do
arr+=("$PROG $testPath/$i/$ter $testPath/$i/$el $testPath/$i/$route.txt $i$route.png")
done
for i in "${arr[@]}";
do
echo "$(tput setaf 1) $i $(tput sgr 0)"
time $i;
#read -p "Press enter to continue"
done
#echo