forked from ECP-CANDLE/Benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·42 lines (41 loc) · 875 Bytes
/
test.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
#!/bin/bash
export TF_CPP_MIN_LOG_LEVEL=3
set +x
if [ $# == 0 ]; then
for pilot in "Pilot1" "Pilot2" "Pilot3" "examples"
do
for dir in $pilot/*/
do
echo $dir
cd $dir
# more test.sh
./test.sh > test.log
rm test.log
cd ../../
done
done
elif [ $# == 1 ]; then
for dir in $1/*/
do
echo $dir
cd $dir
# more test.sh
./test.sh > test.log
rm test.log
cd ../../
done
elif [ $# == 2 ]; then
for dir in $1/$2/
do
echo $dir
cd $dir
# more test.sh
./test.sh > test.log
rm test.log
cd ../../
done
else
echo "Too many arguments"
echo "With no arguments the script will loop over Pilot1, Pilot2, Pilot3 and examples"
echo "Or you can enter a directory, or a directory and benchmark to test a smaller set"
fi