Rouzbahan Rashidi-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Rouzbahan Rashidi-Tabrizi | 7b1bab9 | 2016-11-21 14:28:50 -0500 | [diff] [blame] | 2 | # |
| 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-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [diff] [blame] | 17 | |
Rouzbahan Rashidi-Tabrizi | 7b1bab9 | 2016-11-21 14:28:50 -0500 | [diff] [blame] | 18 | set -e |
| 19 | |
| 20 | echo 'Test script...' |
| 21 | echo 'First... Preparing env...' |
| 22 | echo "############################### MAKE FETCH & MAKE ###############################" |
| 23 | vagrant ssh -- -t 'cd /voltha && source env.sh && make fetch && make' |
| 24 | echo 'Now... Smoke test...' |
| 25 | echo "################################## SMOKE TEST ###################################" |
| 26 | vagrant ssh -- -t 'cd /voltha && source env.sh && make smoke-test' |
| 27 | echo 'Now... itest...' |
| 28 | echo "#################################### iTEST ######################################" |
| 29 | vagrant ssh -- -t 'cd /voltha && source env.sh && make itest' |
| 30 | echo 'Now... utest...' |
| 31 | echo "#################################### uTEST ######################################" |
| 32 | vagrant ssh -- -t 'cd /voltha && source env.sh && make utest' |
| 33 | echo 'Now... test...' |
| 34 | echo "#################################### TEST #######################################" |
| 35 | vagrant ssh -- -t 'cd /voltha && source env.sh && make test' |
| 36 | echo 'Done with the test...' |