aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/verify_dissector.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/verify_dissector.lua')
-rw-r--r--test/lua/verify_dissector.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lua/verify_dissector.lua b/test/lua/verify_dissector.lua
index 46ec704e40..99003a0ee7 100644
--- a/test/lua/verify_dissector.lua
+++ b/test/lua/verify_dissector.lua
@@ -135,6 +135,19 @@ local lines = {
-- dissector, then the first one by the heuristic, then the second one by
-- a conversation match
local numtests = 1 + #lines[1] + #lines[2] + #lines[3] + #lines[4]
+
+local hasHeuristic = true
+
+-- grab passed-in arguments
+local args = { ... }
+if #args > 0 then
+ for _, arg in ipairs(args) do
+ if arg == "no_heur" then
+ numtests = numtests - 1
+ end
+ end
+end
+
print("going to run "..numtests.." tests")
-- for an example of what we're reading through to verify, look at end of this file