wireshark/test
Gerald Combs 751e9463ce Test: Fix default capture interface discovery.
Change-Id: Id033a0e4e1e81ae9e84774b2d76f95049a2e2b3a
Reviewed-on: https://code.wireshark.org/review/27315
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-05-03 19:45:36 +00:00
..
baseline Test: Add fileformats and I/O. 2018-04-27 19:52:04 +00:00
captures Add support for dissecting UDT over DTLS 2017-07-09 18:25:08 +00:00
config
keys Add support for dissecting UDT over DTLS 2017-07-09 18:25:08 +00:00
lua Test: Add wslua. 2018-05-02 00:35:20 +00:00
README.test Test: Remove the Bash test scripts. 2018-05-02 04:09:26 +00:00
config.py Test: Fix default capture interface discovery. 2018-05-03 19:45:36 +00:00
hosts.custom
hosts.global
hosts.personal
subprocesstest.py Test: Add wslua. 2018-05-02 00:35:20 +00:00
suite_capture.py Test: Add fileformats and I/O. 2018-04-27 19:52:04 +00:00
suite_clopts.py Test: More fixes and updates. 2018-05-01 00:37:41 +00:00
suite_decryption.py Test: More fixes and updates. 2018-05-01 00:37:41 +00:00
suite_dissection.py Test: Add fileformats and I/O. 2018-04-27 19:52:04 +00:00
suite_fileformats.py Test: Add fileformats and I/O. 2018-04-27 19:52:04 +00:00
suite_io.py Test: Add fileformats and I/O. 2018-04-27 19:52:04 +00:00
suite_mergecap.py Test: Add text2pcap. 2018-04-30 21:43:30 +00:00
suite_nameres.py Test: Add name resolution. 2018-04-30 18:50:10 +00:00
suite_text2pcap.py Test: Fix capinfos output and command paths. 2018-05-01 18:46:13 +00:00
suite_unittests.py Test: Add unittests. 2018-04-30 22:38:37 +00:00
suite_wslua.py Test: Add wslua. 2018-05-02 00:35:20 +00:00
test.py Test: Add name resolution. 2018-04-30 18:50:10 +00:00
util_dump_dhcp_pcap.py Test: Add fileformats and I/O. 2018-04-27 19:52:04 +00:00

README.test

Wireshark Tests

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`). You must
also build the test-programs target in order for the unittests suite to
pass.

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 --force-new-ctest-process -j 4 --verbose`.

To run all tests directly, run `test.py -p
/path/to/wireshark-build/run-directory <capture args>`.

To see a list of all options, run `test.py -h` or `test.py --help`.

To see a list of all tests, run `test.py -l`.

See the “Wireshark Tests” chapter of the Developer's Guide for details.