blob: e1c2ac69cbe697fde5bc71fcb5213351c7f59d0e [file] [log] [blame]
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -05001#!/bin/bash
Rouzbahan Rashidi-Tabrizi7b1bab92016-11-21 14:28:50 -05002#
3# Copyright 2016 the original author or authors.
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#
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -050017
Rouzbahan Rashidi-Tabrizi7b1bab92016-11-21 14:28:50 -050018set -e
19
20echo 'Test script...'
21echo 'First... Preparing env...'
22echo "############################### MAKE FETCH & MAKE ###############################"
23vagrant ssh -- -t 'cd /voltha && source env.sh && make fetch && make'
24echo 'Now... Smoke test...'
25echo "################################## SMOKE TEST ###################################"
26vagrant ssh -- -t 'cd /voltha && source env.sh && make smoke-test'
27echo 'Now... itest...'
28echo "#################################### iTEST ######################################"
29vagrant ssh -- -t 'cd /voltha && source env.sh && make itest'
30echo 'Now... utest...'
31echo "#################################### uTEST ######################################"
32vagrant ssh -- -t 'cd /voltha && source env.sh && make utest'
33echo 'Now... test...'
34echo "#################################### TEST #######################################"
35vagrant ssh -- -t 'cd /voltha && source env.sh && make test'
36echo 'Done with the test...'