Skip to content

Commit c425a62

Browse files
committed
ci: add first robot test
1 parent 09e8e32 commit c425a62

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.ci/run-grid-tests.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,33 @@
22

33
. /init-grid-ui.sh
44

5+
yum install -y -q git-core python-pip boost-python
6+
7+
# version that works with centos7
8+
pip install robotframework==3.2.2
9+
10+
git clone --depth 1 https://github.com/dCache/Grid-tools-functional-test-suite.git
11+
cd Grid-tools-functional-test-suite
12+
13+
export DFTS_SUT=store-door-svc.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local
14+
export HTTP_PORT=2880
15+
export SRM_PORT=8443
16+
export GSIDCAP_PORT=22128
17+
export GSIFTP_PORT=2811
18+
export DCAP_PORT=22125
19+
export REMOTE_DIR=/data/g2/
20+
export WORKSPACE=`pwd`
21+
22+
23+
# test groups to run
24+
TESTS="DccpTests GlobusurlcpTests"
25+
26+
# robot returns the number of failed tests in its return code.
27+
# So we add up the retvals using ERRORS as an accumulator
28+
declare -i ERRORS=0
29+
30+
for name in $TESTS; do
31+
robot -o ${name}_output --variable SRM_VERSION:2 --name ${name} -x ${name}-junit.xml ${name}.robot || ERRORS+=$?
32+
done
33+
34+
exit $ERRORS

0 commit comments

Comments
 (0)