Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Fix and document tests #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ top-level structure:
- pyretic.py: A wrapper that starts up Pyretic
and optionally an OpenFlow client (see above)

## Tests

The full test suite for pyretic can be run with:

`py.test pyretic/tests/tests.py`

Alternatively, only the unit tests can be run with:

`py.test pyretic/tests/unit_tests.py`
4 changes: 2 additions & 2 deletions pyretic/tests/tests.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from unit_tests import *
from mininet_tests import *
from pyretic.tests.unit_tests import *
from pyretic.tests.mininet_tests import *
7 changes: 5 additions & 2 deletions pyretic/tests/unit_tests.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
from test_language import *
from test_packet import *
from pyretic.tests.test_language import *
from pyretic.tests.test_packet import *
from pyretic.tests.test_re import *
from pyretic.tests.test_path import *
from pyretic.tests.test_specialization import *