diff options
author | Daniel Dulaney <dulaney.daniel@gmail.com> | 2021-03-11 13:31:55 -0500 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-03-26 07:15:16 +0000 |
commit | 62af671bf34718ba7300f042ebf21aaabb15896a (patch) | |
tree | f41667ece5945e2d339abba11f17ddb0cab4aa39 /test/suite_wslua.py | |
parent | 537c5f2955784263d359daf24792583da30a1163 (diff) |
Lua: add DissectorTable.try_heuristics() function
Add DissectorTable.try_heuristics(name, tvb, pinfo, tree). Previously,
there was no way for a Lua plugin to run an existing heuristic
dissector.
Based on Gerrit change 18718. Closes #17220.
Diffstat (limited to 'test/suite_wslua.py')
-rw-r--r-- | test/suite_wslua.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/suite_wslua.py b/test/suite_wslua.py index c230c941a3..1c12ae18b5 100644 --- a/test/suite_wslua.py +++ b/test/suite_wslua.py @@ -282,6 +282,10 @@ class case_wslua(subprocesstest.SubprocessTestCase): '''wslua tvb without a tree''' check_lua_script(self, 'tvb.lua', dns_port_pcap, True) + def test_wslua_try_heuristics(self, check_lua_script): + '''wslua try_heuristics''' + check_lua_script(self, 'try_heuristics.lua', dns_port_pcap, True) + @fixtures.uses_fixtures class case_wslua_unicode(subprocesstest.SubprocessTestCase): |