forked from osmocom/wireshark
![]() Change-Id: Ib21f4866cff27e22a4dc13300c3c38fa962a860f Reviewed-on: https://code.wireshark.org/review/27184 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org> |
||
---|---|---|
.. | ||
baseline | ||
captures | ||
config | ||
keys | ||
lua | ||
README.test | ||
config.py | ||
config.sh | ||
hosts.custom | ||
hosts.global | ||
hosts.personal | ||
run_and_catch_crashes | ||
subprocesstest.py | ||
suite-capture.sh | ||
suite-clopts.sh | ||
suite-decryption.sh | ||
suite-dissection.sh | ||
suite-fileformats.sh | ||
suite-io.sh | ||
suite-mergecap.sh | ||
suite-nameres.sh | ||
suite-text2pcap.sh | ||
suite-unittests.sh | ||
suite-wslua.sh | ||
suite_capture.py | ||
suite_clopts.py | ||
suite_decryption.py | ||
suite_dissection.py | ||
suite_fileformats.py | ||
suite_io.py | ||
suite_mergecap.py | ||
test-backend.sh | ||
test.py | ||
test.sh | ||
util_dump_dhcp_pcap.py |
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`). 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`. 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.