Skip to content

Commit

Permalink
Fix and document tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesGuthrie committed May 27, 2015
1 parent 299ff2b commit 00b9e6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
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 *

0 comments on commit 00b9e6f

Please sign in to comment.