tom

Fixing test scripts.

...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 <param-name>com.sun.jersey.config.property.packages</param-name> 16 <param-name>com.sun.jersey.config.property.packages</param-name>
17 <param-value>org.onlab.onos.tvue</param-value> 17 <param-value>org.onlab.onos.tvue</param-value>
18 </init-param> 18 </init-param>
19 - <load-on-startup>1</load-on-startup> 19 + <load-on-startup>10</load-on-startup>
20 </servlet> 20 </servlet>
21 21
22 <servlet-mapping> 22 <servlet-mapping>
......
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
93 93
94 <feature name="onos-app-tvue" version="1.0.0" 94 <feature name="onos-app-tvue" version="1.0.0"
95 description="ONOS sample topology viewer application"> 95 description="ONOS sample topology viewer application">
96 - <feature>onos-thirdparty-web</feature>
97 <feature>onos-api</feature> 96 <feature>onos-api</feature>
97 + <feature>onos-thirdparty-web</feature>
98 <bundle>mvn:org.onlab.onos/onos-app-tvue/1.0.0-SNAPSHOT</bundle> 98 <bundle>mvn:org.onlab.onos/onos-app-tvue/1.0.0-SNAPSHOT</bundle>
99 </feature> 99 </feature>
100 100
......
1 +#!/bin/bash
2 +#-------------------------------------------------------------------------------
3 +# Builds the ONOS from source.
4 +#-------------------------------------------------------------------------------
5 +
6 +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 +. $ONOS_ROOT/tools/build/envDefaults
8 +
9 +cd $ONOS_ROOT
10 +mvn clean install && mvn javadoc:aggregate
...\ No newline at end of file ...\ No newline at end of file
...@@ -51,7 +51,7 @@ perl -pi.old -e "s|^(featuresRepositories=.*)|\1,mvn:org.onlab.onos/onos-feature ...@@ -51,7 +51,7 @@ perl -pi.old -e "s|^(featuresRepositories=.*)|\1,mvn:org.onlab.onos/onos-feature
51 $ONOS_STAGE/$KARAF_DIST/etc/org.apache.karaf.features.cfg 51 $ONOS_STAGE/$KARAF_DIST/etc/org.apache.karaf.features.cfg
52 52
53 # Patch the Apache Karaf distribution file to load ONOS features 53 # Patch the Apache Karaf distribution file to load ONOS features
54 -perl -pi.old -e 's|^(featuresBoot=.*)|\1,onos-api,onos-core,onos-cli,onos-rest,onos-gui,onos-openflow,onos-app-tvue,onos-app-fwd|' \ 54 +perl -pi.old -e 's|^(featuresBoot=.*)|\1,onos-api,onos-core-trivial,onos-cli,onos-rest,onos-gui,onos-openflow,onos-app-tvue,onos-app-fwd|' \
55 $ONOS_STAGE/$KARAF_DIST/etc/org.apache.karaf.features.cfg 55 $ONOS_STAGE/$KARAF_DIST/etc/org.apache.karaf.features.cfg
56 56
57 # Patch the Apache Karaf distribution with ONOS branding bundle 57 # Patch the Apache Karaf distribution with ONOS branding bundle
......
...@@ -28,8 +28,9 @@ function o { ...@@ -28,8 +28,9 @@ function o {
28 # Short-hand for 'mvn clean install' for us lazy folk 28 # Short-hand for 'mvn clean install' for us lazy folk
29 alias mci='mvn clean install' 29 alias mci='mvn clean install'
30 30
31 -# Short-hand for ONOS build from the top of the source tree. 31 +# Short-hand for ONOS build, package and test.
32 -alias ob='o && mvn clean install javadoc:aggregate' 32 +alias ob='onos-build'
33 +alias op='onos-package'
33 alias ot='onos-test' 34 alias ot='onos-test'
34 35
35 # Short-hand for tailing the ONOS (karaf) log 36 # Short-hand for tailing the ONOS (karaf) log
......
1 +#!/bin/bash
2 +#-------------------------------------------------------------------------------
3 +# Checks the logs of the remote ONOS instance and makes sure they are clean.
4 +#-------------------------------------------------------------------------------
5 +
6 +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 +. $ONOS_ROOT/tools/build/envDefaults
8 +
9 +remote=$ONOS_USER@${1:-$OCI}
10 +
11 +LOG=$ONOS_INSTALL_DIR/log/karaf.log
12 +
13 +ssh $remote "egrep 'ERROR|Exception' $LOG"