• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

baseline/H03-May-2022-4,5434,537

captures/H03-May-2022-181172

config/H29-Dec-2021-5345

keys/H03-May-2022-204164

lua/H03-May-2022-10,1536,575

protobuf_lang_files/H29-Dec-2021-956788

suite_dfilter/H29-Dec-2021-1,421984

suite_dissectors/H29-Dec-2021-4,0083,826

README.testH A D29-Dec-20211.2 KiB2115

conftest.pyH A D29-Dec-20211.4 KiB4628

fixtures.pyH A D29-Dec-202112.1 KiB378277

fixtures_ws.pyH A D29-Dec-202114.2 KiB397298

hosts.customH A D29-Dec-2021123 54

hosts.globalH A D29-Dec-2021103 54

hosts.personalH A D29-Dec-2021127 54

matchers.pyH A D29-Dec-20211.7 KiB6739

sampleif.pyH A D29-Dec-20211.8 KiB6031

subprocesstest.pyH A D29-Dec-202112.3 KiB306228

suite_capture.pyH A D29-Dec-202124 KiB604483

suite_clopts.pyH A D29-Dec-202114.6 KiB309231

suite_decryption.pyH A D29-Dec-202172 KiB1,4681,240

suite_dissection.pyH A D29-Dec-202133.8 KiB626506

suite_extcaps.pyH A D29-Dec-20213.2 KiB8966

suite_external.pyH A D29-Dec-20216 KiB169131

suite_fileformats.pyH A D29-Dec-202111.3 KiB252212

suite_follow.pyH A D29-Dec-20213.8 KiB7452

suite_follow_dccp.pyH A D29-Dec-20214.5 KiB9270

suite_follow_multistream.pyH A D29-Dec-20217.5 KiB6445

suite_io.pyH A D29-Dec-20213.7 KiB8756

suite_mergecap.pyH A D29-Dec-202112.8 KiB288215

suite_nameres.pyH A D29-Dec-20215.5 KiB13181

suite_netperfmeter.pyH A D29-Dec-202136.8 KiB432397

suite_outputformats.pyH A D29-Dec-20213.5 KiB9672

suite_release.pyH A D29-Dec-20211.4 KiB4734

suite_sharkd.pyH A D29-Dec-202125 KiB575513

suite_text2pcap.pyH A D29-Dec-202123.8 KiB567448

suite_unittests.pyH A D29-Dec-20214.2 KiB12493

suite_wslua.pyH A D29-Dec-202112.4 KiB324250

test.pyH A D29-Dec-20214.9 KiB144104

travis-upload-artifacts.shH A D29-Dec-2021855 3516

util_dump_dhcp_pcap.pyH A D29-Dec-20211.3 KiB4627

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