You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wireshark/test
Zach Chadwick 5c0af364f1
Sharkd: Add column header labels to the "status" output
1 month ago
..
baseline tshark: fix duplicate fields issue in ek output. 3 months ago
captures add mongo zstd test to suite_dissection.py 3 months ago
config dot11decrypt: Add partial FT-EAP decryption support 2 years ago
keys Add support for RSA decryption using PKCS #11 tokens 4 years ago
lua WSLUA: allow 64 bits bitmask for ProtoField objects 3 months ago
protobuf_lang_files GRPC: Add support for gRPC-Web 1 year ago
suite_dfilter Set unique exit codes for processes 2 months ago
suite_dissectors asterix: output format fix 1 year ago
README.test Qt: Add a packet diagram view. 3 years ago
conftest.py Tools+test: Call python3 explicitly. 2 years ago
fixtures.py Tools+test: Call python3 explicitly. 2 years ago
fixtures_ws.py MSYS2: Add Lua 5.1 support and fix test suite failures 2 months ago
hosts.custom
hosts.global
hosts.personal
matchers.py Tools+test: Call python3 explicitly. 2 years ago
sampleif.py test: fix sampleif.py on weird systems using Python 3.6 and older 4 years ago
subprocesstest.py Move ui/exit_codes.h to include/ 2 months ago
suite_capture.py MSYS2: Test commands in pipes need quoting 2 years ago
suite_clopts.py MSYS2: Add Lua 5.1 support and fix test suite failures 2 months ago
suite_decryption.py test: Remove libgcrypt checks for 1.8 and below 11 months ago
suite_dissection.py add mongo zstd test to suite_dissection.py 3 months ago
suite_extcaps.py extcap: new interface, wifidump, to capture Wi-Fi frames using a remote SSH host 1 year ago
suite_external.py Test: Add external tests. 1 year ago
suite_fileformats.py file-pcapng: redo the way we dissect the data in blocks. 2 years ago
suite_follow.py Tools+test: Call python3 explicitly. 2 years ago
suite_follow_dccp.py tests: fix the test case running warning. 1 year ago
suite_follow_multistream.py test: Skip Follow HTTP2 test without Nghttp2 4 months ago
suite_io.py Tools+test: Call python3 explicitly. 2 years ago
suite_mergecap.py editcap/mergecap: swap 'v'|'V' options to match other CLI utilities 9 months ago
suite_nameres.py Tools+test: Call python3 explicitly. 2 years ago
suite_netperfmeter.py Using col_append_sep_fstr() instead of prepending "NetPerfMeter" label. 2 years ago
suite_outputformats.py Tools+test: Call python3 explicitly. 2 years ago
suite_release.py Tools+test: Call python3 explicitly. 2 years ago
suite_sharkd.py Sharkd: Add column header labels to the "status" output 1 month ago
suite_text2pcap.py test: Update text2pcap test to use new hexdump option 1 year ago
suite_unittests.py epan/proto: Replace format text() 5 months ago
suite_wslua.py MSYS2: Add Lua 5.1 support and fix test suite failures 2 months ago
test.py Test: Add external tests. 1 year ago
travis-upload-artifacts.sh test,travis: dump a screenshot for hanging GUI tests 4 years ago
util_dump_dhcp_pcap.py Dumpcap+Qt: Add support for `-a packets:NUM` and `-b packets:NUM`. 4 years ago

README.test

Wireshark Tests

The recommended steps to prepare for and to run tests:

* Install two Python packages, pytest: `pip install pytest pytest-xdist`
* Build programs (“wireshark”, “tshark”, etc.): `ninja`
* Build additional programs for the “unittests” suite: `ninja test-programs`
* Run tests in the build directory: `pytest`

Replace `ninja test-programs` by `make test-programs` as needed.

See the “Wireshark Tests” chapter of the Developer's Guide for details:
https://www.wireshark.org/docs/wsdg_html_chunked/ChapterTests.html

If you need to update the baseline files use the following commands (on a Linux system)
mkdir ~/.config/wireshark/profiles/ctest
TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T ek -r test/captures/dhcp.pcap > test/baseline/dhcp.ek
TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T json -r test/captures/dhcp.pcap > test/baseline/dhcp.json
TZ=UTC WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 build/run/tshark -C ctest -T jsonraw -r test/captures/dhcp.pcap > test/baseline/dhcp.jsonraw
TZ=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