blob: 446d3754336e27f31fd40d51226a7f90c270ff71 [file] [log] [blame]
Matteo Scandolo60b640f2017-08-08 13:05:22 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Andy Baviercaeab6a2016-12-12 14:58:01 -050017#!/usr/bin/env bash
18
19set -e
20
Andy Bavier392a40c2017-02-12 10:30:32 -080021CORDDIR=~/cord
Andy Bavierfcf4e842017-06-27 17:55:10 -040022VMDIR=/opt/cord/build/
Andy Baviercaeab6a2016-12-12 14:58:01 -050023CONFIG=config/cord_in_a_box.yml
24SSHCONFIG=~/.ssh/config
25
26function run_e2e_test () {
27 cd $CORDDIR/build
28
29 # User has been added to the lbvirtd group, but su $USER to be safe
Andy Bavierfcf4e842017-06-27 17:55:10 -040030 ssh corddev "cd $VMDIR; ./gradlew -PdeployConfig=$VMDIR/$CONFIG postDeployTests"
Andy Baviercaeab6a2016-12-12 14:58:01 -050031}
32
33run_e2e_test
34
35exit 0