blob: 50a28b6b52e7f0829cefc3106440d68e43325ed9 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001#!/bin/bash
2#
3# Copyright 2016-2017 Huawei Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
koblosz2ac270a2018-10-23 07:32:30 +020017# Modifications copyright (c) 2018 Nokia Intellectual Property
Gary Wu9abb61c2018-09-27 10:38:50 -070018#
19# Place the scripts in run order:
20
21/usr/bin/Xvfb :0 -screen 0 1024x768x24&
22export DISPLAY=:0
23
koblosz2ac270a2018-10-23 07:32:30 +020024source ${SCRIPTS}/common_functions.sh
Gary Wu13111e92018-09-27 11:31:33 -070025source ${WORKSPACE}/scripts/vid/clone_and_setup_vid_data.sh
Gary Wu13111e92018-09-27 11:31:33 -070026source ${WORKSPACE}/scripts/vid/start_vid_containers.sh
Gary Wu9abb61c2018-09-27 10:38:50 -070027
Ittay Sternf8af5bf2019-03-27 18:21:29 +020028echo "Obtaining ip of VID server..."
koblosz2ac270a2018-10-23 07:32:30 +020029VID_IP=`get-instance-ip.sh vid-server`
30SO_SIMULATOR_IP=`get-instance-ip.sh so-simulator`
Gary Wu9abb61c2018-09-27 10:38:50 -070031
koblosz2ac270a2018-10-23 07:32:30 +020032bypass_ip_address ${VID_IP}
33bypass_ip_address ${SO_SIMULATOR_IP}
34
35echo VID_IP=${VID_IP}
36echo SO_SIMULATOR_IP=${SO_SIMULATOR_IP}
Gary Wu9abb61c2018-09-27 10:38:50 -070037
38
39# Pass any variables required by Robot test suites in ROBOT_VARIABLES
koblosz2ac270a2018-10-23 07:32:30 +020040ROBOT_VARIABLES="-v VID_IP:${VID_IP} -v SO_SIMULATOR_IP:${SO_SIMULATOR_IP}"
adam6142bef2018-10-01 10:34:19 +020041
42pip install assertpy
43pip install requests