Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
baseline/ | H | 03-May-2022 | - | 4,543 | 4,537 | |
captures/ | H | 03-May-2022 | - | 181 | 172 | |
config/ | H | 29-Dec-2021 | - | 53 | 45 | |
keys/ | H | 03-May-2022 | - | 204 | 164 | |
lua/ | H | 03-May-2022 | - | 10,153 | 6,575 | |
protobuf_lang_files/ | H | 29-Dec-2021 | - | 956 | 788 | |
suite_dfilter/ | H | 29-Dec-2021 | - | 1,421 | 984 | |
suite_dissectors/ | H | 29-Dec-2021 | - | 4,008 | 3,826 | |
README.test | H A D | 29-Dec-2021 | 1.2 KiB | 21 | 15 | |
conftest.py | H A D | 29-Dec-2021 | 1.4 KiB | 46 | 28 | |
fixtures.py | H A D | 29-Dec-2021 | 12.1 KiB | 378 | 277 | |
fixtures_ws.py | H A D | 29-Dec-2021 | 14.2 KiB | 397 | 298 | |
hosts.custom | H A D | 29-Dec-2021 | 123 | 5 | 4 | |
hosts.global | H A D | 29-Dec-2021 | 103 | 5 | 4 | |
hosts.personal | H A D | 29-Dec-2021 | 127 | 5 | 4 | |
matchers.py | H A D | 29-Dec-2021 | 1.7 KiB | 67 | 39 | |
sampleif.py | H A D | 29-Dec-2021 | 1.8 KiB | 60 | 31 | |
subprocesstest.py | H A D | 29-Dec-2021 | 12.3 KiB | 306 | 228 | |
suite_capture.py | H A D | 29-Dec-2021 | 24 KiB | 604 | 483 | |
suite_clopts.py | H A D | 29-Dec-2021 | 14.6 KiB | 309 | 231 | |
suite_decryption.py | H A D | 29-Dec-2021 | 72 KiB | 1,468 | 1,240 | |
suite_dissection.py | H A D | 29-Dec-2021 | 33.8 KiB | 626 | 506 | |
suite_extcaps.py | H A D | 29-Dec-2021 | 3.2 KiB | 89 | 66 | |
suite_external.py | H A D | 29-Dec-2021 | 6 KiB | 169 | 131 | |
suite_fileformats.py | H A D | 29-Dec-2021 | 11.3 KiB | 252 | 212 | |
suite_follow.py | H A D | 29-Dec-2021 | 3.8 KiB | 74 | 52 | |
suite_follow_dccp.py | H A D | 29-Dec-2021 | 4.5 KiB | 92 | 70 | |
suite_follow_multistream.py | H A D | 29-Dec-2021 | 7.5 KiB | 64 | 45 | |
suite_io.py | H A D | 29-Dec-2021 | 3.7 KiB | 87 | 56 | |
suite_mergecap.py | H A D | 29-Dec-2021 | 12.8 KiB | 288 | 215 | |
suite_nameres.py | H A D | 29-Dec-2021 | 5.5 KiB | 131 | 81 | |
suite_netperfmeter.py | H A D | 29-Dec-2021 | 36.8 KiB | 432 | 397 | |
suite_outputformats.py | H A D | 29-Dec-2021 | 3.5 KiB | 96 | 72 | |
suite_release.py | H A D | 29-Dec-2021 | 1.4 KiB | 47 | 34 | |
suite_sharkd.py | H A D | 29-Dec-2021 | 25 KiB | 575 | 513 | |
suite_text2pcap.py | H A D | 29-Dec-2021 | 23.8 KiB | 567 | 448 | |
suite_unittests.py | H A D | 29-Dec-2021 | 4.2 KiB | 124 | 93 | |
suite_wslua.py | H A D | 29-Dec-2021 | 12.4 KiB | 324 | 250 | |
test.py | H A D | 29-Dec-2021 | 4.9 KiB | 144 | 104 | |
travis-upload-artifacts.sh | H A D | 29-Dec-2021 | 855 | 35 | 16 | |
util_dump_dhcp_pcap.py | H A D | 29-Dec-2021 | 1.3 KiB | 46 | 27 |
README.test
1Wireshark Tests 2 3The recommended steps to prepare for and to run tests: 4 5* Install two Python packages, pytest: `pip install pytest pytest-xdist` 6* Build programs (“wireshark”, “tshark”, etc.): `ninja` 7* Build additional programs for the “unittests” suite: `ninja test-programs` 8* Run tests in the build directory: `pytest` 9 10Replace `ninja test-programs` by `make test-programs` as needed. 11 12See the “Wireshark Tests” chapter of the Developer's Guide for details: 13https://www.wireshark.org/docs/wsdg_html_chunked/ChapterTests.html 14 15If you need to update the baseline files use the following commands (on a Linux system) 16mkdir ~/.config/wireshark/profiles/ctest 17TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T ek -r test/captures/dhcp.pcap > test/baseline/dhcp.ek 18TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T json -r test/captures/dhcp.pcap > test/baseline/dhcp.json 19TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T jsonraw -r test/captures/dhcp.pcap > test/baseline/dhcp.jsonraw 20TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T ek -r test/captures/dhcp.pcap -x > test/baseline/dhcp-raw.ek 21