2018-04-03 00:12:23 +00:00
|
|
|
Wireshark Tests
|
2005-12-13 23:15:20 +00:00
|
|
|
|
2018-04-03 00:12:23 +00:00
|
|
|
The main testing script is `test.py`. It will attempt to test as much as
|
|
|
|
possible by default, including packet capture. This means that you will
|
|
|
|
probably either have to supply a capture interface (`--capture-interface
|
|
|
|
<interface>`) or disable capture tests (`--disable-capture`).
|
2005-12-13 23:15:20 +00:00
|
|
|
|
2018-04-03 00:12:23 +00:00
|
|
|
To run all tests from CMake do the following:
|
|
|
|
- Pass `-DTEST_EXTRA_ARGS=--disable-capture` or
|
|
|
|
`-DTEST_EXTRA_ARGS=--capture-interface=<interface>`
|
|
|
|
as needed for your system.
|
|
|
|
- Build the “test” target or run ctest, e.g. `ctest --jobs=4 --verbose`.
|
2005-12-13 23:15:20 +00:00
|
|
|
|
2018-04-03 00:12:23 +00:00
|
|
|
To run all tests directly, run `test.py -p
|
|
|
|
/path/to/wireshark-build/run-directory <capture args>`.
|
2005-12-13 23:15:20 +00:00
|
|
|
|
2018-04-03 00:12:23 +00:00
|
|
|
To see a list of all options, run `test.py -h` or `test.py --help`.
|
2005-12-13 23:15:20 +00:00
|
|
|
|
2018-04-03 00:12:23 +00:00
|
|
|
To see a list of all tests, run `test.py -l`.
|
2005-12-13 23:15:20 +00:00
|
|
|
|
2018-04-03 00:12:23 +00:00
|
|
|
See the “Wireshark Tests” chapter of the Developer's Guide for details.
|