Skip to content

Commit

Permalink
Doc: Update the unit test section for privileged tests
Browse files Browse the repository at this point in the history
This PR adds instructions to the cilium documentation on how to
run the 'privileged' unit tests.

Fixes: #11431
Signed-off-by: Swaminathan Vasudevan <svasudevan@suse.com>
  • Loading branch information
soumynathan authored and christarazi committed May 27, 2020
1 parent 9168268 commit e868f36
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Documentation/contributing/testing/unit.rst
Expand Up @@ -63,6 +63,29 @@ run the unit tests and tear down the prerequisites:

$ make unit-tests TESTPKGS=github.com/cilium/cilium/pkg/kvstore

Some packages have privileged tests. They are not run by default when you run
the unit tests for the respective package. The privileged test files have an
entry at the top of the test file as shown.

::

+build privileged_tests

There are two ways that you can run the 'privileged' tests.

1. To run all the 'privileged' tests for cilium follow the instructions below.

::

$ sudo -E make tests-privileged

2. To run a specific package 'privileged' test, follow the instructions below.
Here for example we are trying to run the tests for 'routing' package.

::

$ TESTPKGS="pkg/aws/eni/routing" sudo -E make tests-privileged

Running individual tests
^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit e868f36

Please sign in to comment.