-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunTests.sh
More file actions
executable file
·38 lines (29 loc) · 956 Bytes
/
runTests.sh
File metadata and controls
executable file
·38 lines (29 loc) · 956 Bytes
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
#!/bin/bash
#make directory of outputs with given name. if already exists does nothing
ZERO=0
if [[ ! -d "$2" ]]
then
echo "Output Directory non existant"
else
if [[ ! -d "$1" ]]
then
echo "Input Directory non existant"
else
if [[ "$3" < "$ZERO" ]]
then
echo "Number of Threads needs to be greater then Zero"
else
#for cicle to run each file in inputs directory. for cicle to run 0 - max multiple threads for each file.
#prints the last line of variable
FILES=$(ls ${1})
for filename in $FILES; do
for i in $(seq 1 ${3}); do
echo "InputFile=${filename} NumThreads=$i"
file=${filename%.*}
timeoutput=$(./tecnicofs ${1}/${filename} ${2}/$file-${i}.txt ${i}|tail -1)
echo ${timeoutput}
done
done
fi
fi
fi