aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_dissectors
AgeCommit message (Collapse)AuthorFilesLines
2022-01-23asterix: output format fixZoran Bošnjak1-39/+39
Use HEX, DEC, HEX_DEC..., depending on item size and byte alignment.
2021-10-30asterix: Dissector automatic update from spec filesZoran Bošnjak1-409/+436
Asterix data format is a complex family of asterix categories, where each individual category exists in multiple editions. As a result of many variants, the epan/dissectors/packet-asterix.c is one of the largest dissectors. So far, the asterix dissector had been maintained manually, where the generic decoding routines and category/edition specific definitions were entangled in the same file (packet-asterix.c). This commit preserves the overall dissector structure, but makes it easy to update the dissector with new categories or editions as they become available (via the update script from this commit). See tools/asterix/README.md file for dissector update procedure. This commit includes: - tools/asterix/packet-asterix-template.c Extraction of generic asterix decoding routines and common data structures. - tools/asterix/update-specs.py Update script, to render the template with up-to-date asterix specs files. The asterix specs files themselves are maintained in a separate repository. - epan/dissectors/packet-asterix.c Automatically generated dissector for asterix data format. Although generated, this file needs to remain in the repository, to be able to build the project in a reproducible way. The generated asterix dissector was additionally tested with: - ./tools/check_typed_item_calls.py --mask - ./tools/fuzz-test.sh Sync with asterix-specs #cef694825c
2021-03-11Qt: Copy->Value - don't zero pad hex valuesChuck Craft1-2/+2
Closes #17276 Update test scripts and datafiles for corrected output format.
2020-11-05Tools+test: Call python3 explicitly.Gerald Combs2-4/+0
PEP 394[1] says, "In cases where the script is expected to be executed outside virtual environments, developers will need to be aware of the following discrepancies across platforms and installation methods: * Older Linux distributions will provide a python command that refers to Python 2, and will likely not provide a python2 command. * Some newer Linux distributions will provide a python command that refers to Python 3. * Some Linux distributions will not provide a python command at all by default, but will provide a python3 command by default." Debian has forced the issue by choosing the third option[2]: "NOTE: Debian testing (bullseye) has removed the "python" package and the '/usr/bin/python' symlink due to the deprecation of Python 2." Switch our shebang from "#!/usr/bin/env python" to "#!/usr/bin/env python3" in some places. Remove some 2/3 version checks if we know we're running under Python 3. Remove the "coding: utf-8" in a bunch of places since that's the default in Python 3. [1]https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers [2]https://wiki.debian.org/Python
2019-01-11Unit tests for ASTERIX I048Atli Guðmundsson1-0/+1707
Change-Id: I0138681650dcabb01e08f3d25817b5fdd30f45e8 Reviewed-on: https://code.wireshark.org/review/31380 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-06Unit tests for ASTERIX I034Atli Guðmundsson1-0/+684
Change-Id: I7a063fdbc08a79c0358857d1e38ded41ae122b23 Reviewed-on: https://code.wireshark.org/review/31399 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-04test/dissectorstest: assert that text2pcap and tshark runsPeter Wu1-2/+2
Fail early if these commands fail. Change-Id: I6ba6cfa4b0b68c7282b79204b4f2bfedfefa4326 Reviewed-on: https://code.wireshark.org/review/31352 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-12-27test: fix import in suite_dissectors/group_asterix.Dario Lombardo1-1/+1
Change-Id: I88a97168f318c4d900dadf8443e4068c60ba342f Reviewed-on: https://code.wireshark.org/review/31212 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-12-26Added a generic dissector validator and some ASTERIX unit tests that use it.Atli Guðmundsson3-0/+1618
This patch extends the test suite with: * a way for tests to check if a given byte sequence dissects into an expected dissection result. Unit tests included: * ASTERIX I019 * ASTERIX I063 * ASTERIX I065 Change-Id: Ib168382ec15b0b610ff5913806120ba1bf1d1503 Reviewed-on: https://code.wireshark.org/review/31083 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>