-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
make check
and document testing procedure.
Also support test target in cmake.
- Loading branch information
Showing
8 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Tests | ||
|
||
## Running | ||
|
||
The Mosquitto test suite can be invoked using either of | ||
|
||
``` | ||
make test | ||
make check | ||
``` | ||
|
||
The tests run in series and due to the nature of some of the tests being made | ||
can take a while. | ||
|
||
## Parallel Tests | ||
|
||
To run the tests with some parallelism, use | ||
|
||
``` | ||
make ptest | ||
``` | ||
|
||
This runs up to 20 tests in parallel at once, yielding much faster overall run | ||
time at the expense of having up to 20 instances of Python running at once. | ||
This is not a particularly CPU intensive option, but does require more memory | ||
and may be unsuitable on e.g. a Raspberry Pi. | ||
|
||
## Dependencies | ||
|
||
The tests require Python 3 and CUnit to be installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters