commit | 8b13e70166e695923f1aea3e50a05c3ddff1719c | [log] [tgz] |
---|---|---|
author | timlindberg <tim@onlab.us> | Wed Jul 17 14:45:50 2013 -0700 |
committer | timlindberg <tim@onlab.us> | Wed Jul 17 14:45:50 2013 -0700 |
tree | a4a6445cd6e3100c7dba60666b5a0d6378f05d6f | |
parent | e5f5a193e5830e6592a3a2071d8b09844285e829 [diff] |
Adding Jacoco code coverage functionality to build and start-onos
Open Networking Operating System
BELOW TO BE WRITTEN IN DETAIL
Install custom jars and dependencies (Only need to be run only once)
$ ./setup-local-maven.sh
Cleanly Build ONOS
$ mvn clean $ mvn compile
NOTE: installing maven for the first time may switch java version from 1.7 to 1.6 causing cassandra to not run
Start zookeeper
$ cd (ONOS-INSTALL-DIR)/
$ ./start-zk.sh
Start cassandra
$ cd (ONOS-INSTALL-DIR)/
$ ./start-cassandra.sh start
Confirm cassandra is running
$ ./start-cassandra.sh status
Start ONOS instance
$ cd (ONOS-INSTALL-DIR)/
$ ./start-onos.sh start
Start ONOS rest apis
$ ./start-rest.sh start
Start Zookeeper
$ cd (ONOS-INSTALL-DIR)/
$ ./zkServer.sh start
Start ONOS and Cassandra embedded
$ cd (ONOS-INSTALL_DIR)/
$ ./start-onos-embedded.sh start
Start ONOS rest apis
$ ./start-rest.sh start
Maven is used to build and run ONOS. By default, maven tries to reach the repositories. To suppress this behavior '-o' option should be given to mvn
command.
To give additional option to mvn
commands used in ONOS, use the MVN environment variable.
Example: Running in offline mode
$ env MVN="mvn -o" ./start-onos.sh start