blob: 434552558d78c2adf80688677a61969c99bb2a8c [file] [log] [blame]
andrewonlab4a5c4472014-10-09 12:11:41 -04001
2#Testing the basic functionality of ONOS Next
3#For sanity and driver functionality excercises only.
4
andrewonlab7735d852014-10-09 13:02:47 -04005import time
6import sys
7import os
8
andrewonlab4a5c4472014-10-09 12:11:41 -04009class ONOSNextTest:
10 def __init__(self):
11 self.default = ''
12
13 def CASE1(self, main):
14 '''
15 Startup sequence:
16 git pull
17 mvn clean install
18 onos-package
19 cell <name>
20 onos-verify-cell
21 onos-install -f
22 onos-wait-for-start
23 '''
andrewonlab7735d852014-10-09 13:02:47 -040024
25
andrewonlab0748d2a2014-10-09 13:24:17 -040026 #install_result = main.ONOSbench.clean_install()
27 install_result = main.TRUE
andrewonlab7735d852014-10-09 13:02:47 -040028 package_result = main.ONOSbench.onos_package()
29
andrewonlab0748d2a2014-10-09 13:24:17 -040030
31
32 case1_result = (install_result and package_result)
33 utilities.assert_equals(expect=main.TRUE, actual=case1_result,
34 onpass="Test startup successful",
35 onfail="Test startup NOT successful")
andrewonlab4a5c4472014-10-09 12:11:41 -040036
37