Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-09-18 19:58:47 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1f3805db860de3c793a760fff6501f8b8110a557
1f3805db
1 parent
6b5cfec5
Tweaking onos-* test scripts.
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
tools/build/onos-package
tools/test/bin/onos-install
tools/test/bin/onos-log
tools/build/onos-package
View file @
1f3805d
...
...
@@ -50,7 +50,7 @@ perl -pi.old -e "s|^(featuresRepositories=.*)|\1,mvn:org.onlab.onos/onos-feature
$ONOS_STAGE
/
$KARAF_DIST
/etc/org.apache.karaf.features.cfg
# Patch the Apache Karaf distribution file to load ONOS features
perl -pi.old -e
's|^(featuresBoot=.*)|\1,onos-api,onos-core,onos-cli,onos-rest,onos-gui,onos-openflow,onos-app-tvue|'
\
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
|'
\
$ONOS_STAGE
/
$KARAF_DIST
/etc/org.apache.karaf.features.cfg
# Patch the Apache Karaf distribution with ONOS branding bundle
...
...
tools/test/bin/onos-install
View file @
1f3805d
...
...
@@ -16,9 +16,13 @@ scp -q $ONOS_TAR $remote:/tmp
ssh
$remote
"
[ -d
$ONOS_INSTALL_DIR
/bin ] && echo
\"
ONOS is already installed
\"
&& exit 1
# Prepare a landing zone and unroll the bits
sudo mkdir -p
$ONOS_INSTALL_DIR
&& sudo chown sdn:sdn
$ONOS_INSTALL_DIR
tar zxmf /tmp/
$ONOS_BITS
.tar.gz -C
$ONOS_INSTALL_DIR
--strip-components=1
# Make a link to the log file directory.
ln -s /opt/onos/
$KARAF_DIST
/data/log /opt/onos/log
# TODO: Setup ONOS to run as a daemon; for now we at least startup
nohup /opt/onos/bin/onos-ctl server </dev/null 1>/opt/onos/svc.log 2>&1 &
"
...
...
tools/test/bin/onos-log
View file @
1f3805d
...
...
@@ -10,6 +10,8 @@ remote=$ONOS_USER@${1:-$OCI}
LOG
=
$ONOS_INSTALL_DIR
/log/karaf.log
trap
"ssh
$remote
'ps -ef | grep
\"
tail -n 512
\"
| grep -v grep | cut -c10-15 | xargs kill'"
EXIT
ssh
$remote
"
while true; do
[ ! -f
$LOG
] && sleep 2 && continue
...
...
Please
register
or
login
to post a comment