Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

To get the source code and build ONOS, all you need to do it run the following commands from Unix-like terminal (e.g. Linux, MacOS):

Release 1.14 Owl (Bazel build)

Build ONOS
$cd $ONOS_ROOT
$ bazel build onos

for more details please see the presentation (https://docs.google.com/presentation/d/1ghc1kGIwdkah6nACFofm3s5e731CZmmBPM-V21b_1Bc/edit?usp=sharing)

Pre 1.14 command

Build ONOS 1.13 (or older)
$ONOS_ROOT/tools/build/onos-buck build onos --show-output

This will compile all source code assemble the installable onos.tar.gz, which is located in the buck-out directory. Note the --show-output option, which can be omitted, will display the path to this file.

Executing unit tests

To execute ONOS unit tests, including code Checkstyle validation, run the following command:

Release 1.14 Owl (Bazel build)

Run ONOS unit tests
$cd $ONOS_ROOT
$ bazel query 'tests(//...)' | xargs bazel test

Pre 1.14 command

Run ONOS 1.13 (or older) unit tests
$ONOS_ROOT/tools/build/onos-buck test
  • No labels