Set environment variables when running VTC daily
[yardstick.git] / ci / apexlake-verify
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 DPDK_HOST=10.118.36.130
12
13 YARDSTICK=/home/user/yardstick
14 TESTSUITE=$YARDSTICK/tests/opnfv/test_suites/opnfv_vTC_daily.yaml
15
16 : ${INSTALLER_TYPE:='unknown'}
17 : ${NODE_NAME:='unknown'}
18 : ${DEPLOY_SCENARIO:='unknown'}
19
20 commands="
21 cd $YARDSTICK
22 source /home/user/openrc.dasm
23 export INSTALLER_TYPE=$INSTALLER_TYPE
24 export NODE_NAME=$NODE_NAME
25 export DEPLOY_SCENARIO=$DEPLOY_SCENARIO
26 sudo -E yardstick task start --suite $TESTSUITE"
27
28 echo "$commands" | ssh -l user $DPDK_HOST 'bash -s'
29 exit $?