-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_all.sh
executable file
·83 lines (73 loc) · 1.8 KB
/
test_all.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# This script seems to be customized for user 'yadunandb', intentional?
source setup.sh
export BEAGLE_USERNAME="yadunandb"
export BEAGLE_PROJECT="CI-CCR000013"
export MIDWAY_USERNAME="yadunand"
export AWS_CREDENTIALS_FILE="/home/yadu/.ssh/swift-grant-credentials.csv"
export URL_OF_AD_HOC_MACHINE_1="crank"
export AD_HOC_1_USERNAME="yadunand"
export OSG_USERNAME="yadunand"
export OSG_PROJECT="swift"
export GORDON_USERNAME="yadunand"
export TRESTLES_USERNAME="yadunand"
export HOPPER_USERNAME="yadunand"
export BLACKLIGHT_USERNAME="yadunand"
if 0 ;then
for i in $(seq 1 1 3)
do
pushd .
echo "============================TESTING part0$i==========================="
cd part0$i
swift p$i.swift -site=localhost
if [[ $? == 0 ]]
then
echo "Cleaning up!"
cleanup
fi
echo -e "\n\n"
popd
done
fi
#SITES=('beagle' 'midway' 'osgc' 'ad-hoc-1')
#SITES=('stampede' 'gordon' 'blacklight')
SITES=('edison')
CONFIG="-config nersc.conf"
for i in $(seq 4 1 6)
do
pushd .
echo "============================TESTING part0$i==========================="
cd part0$i
for SITE in ${SITES[*]}
do
echo "Running on SITE : $SITE"
swift $CONFIG -sites $SITE p$i.swift
if [[ $? == 0 ]]
then
echo "Cleaning up!"
cleanup
fi
done
echo -e "\n\n"
popd
done
SITES=('edison_multinode')
CONFIG="-config nersc.conf"
for i in $(seq 7 1 8)
do
pushd .
echo "============================TESTING part0$i==========================="
cd part0$i
for SITE in ${SITES[*]}
do
echo "Running on SITE : $SITE"
swift $CONFIG -sites $SITE p$i.swift
if [[ $? == 0 ]]
then
echo "Cleaning up!"
cleanup
fi
done
echo -e "\n\n"
popd
done