Wireshark-commits: [Wireshark-commits] master f5a1786: Add test suite for Lua dissector-related fun
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=f5a1786ea1cc96f3230c05a7f93b6242373f5ab9
Submitter: Alexis La Goutte (alexis.lagoutte@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
f5a1786 by Hadriel Kaplan (hadrielk@xxxxxxxxx):
Add test suite for Lua dissector-related functions
This isn't super-fancy, but it runs a simple protocol dissector and verifies the tshark output
matches what it expects. Things like Proto, ProtoField, Field, Tvb, TvbRange, etc., are used
in an example dissector script - it dissects DNS... partially. Enough to make sure things
aren't fundamentally broken. This provides something to add on top of later as well.
Change-Id: Icf3c8e9534944bcf4c4f6150f02a9a43f999cd75
Reviewed-on: https://code.wireshark.org/review/126
Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Tested-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Actions performed:
from fe0ed97 [Automatic manuf, services and enterprise-numbers update for 2014-02-09]
adds f5a1786 Add test suite for Lua dissector-related functions
Summary of changes:
test/captures/dns_port.pcap | Bin 0 -> 671 bytes
test/lua/dissector.lua | 391 +++++++++++++++++++++++++++++++++++++++++
test/lua/verify_dissector.lua | 275 +++++++++++++++++++++++++++++
test/suite-unittests.sh | 33 +++-
4 files changed, 698 insertions(+), 1 deletion(-)
create mode 100644 test/captures/dns_port.pcap
create mode 100644 test/lua/dissector.lua
create mode 100644 test/lua/verify_dissector.lua