From 28dbab369d5a6790b4657ddf012c9a73526a8789 Mon Sep 17 00:00:00 2001 From: Joey Salazar Date: Thu, 11 Feb 2021 19:05:14 -0600 Subject: [PATCH] git: Add test cases Add git dissection test cases to existing testing suite for: finding git packets, finding the Git Protocol version, finding the right amount of Flush and Delimiter packets, not finding Malformed packets. Part of #17093 --- epan/dissectors/packet-git.c | 3 +++ test/captures/gitOverTCP.pcap | Bin 0 -> 582 bytes test/suite_dissection.py | 25 +++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 test/captures/gitOverTCP.pcap diff --git a/epan/dissectors/packet-git.c b/epan/dissectors/packet-git.c index eb685d2989..3b216a3cb6 100644 --- a/epan/dissectors/packet-git.c +++ b/epan/dissectors/packet-git.c @@ -9,6 +9,9 @@ * Copied from packet-pop.c * * SPDX-License-Identifier: GPL-2.0-or-later + * + * Current testing suite 'case_dissect_git' can be found at + * test/suite_dissection.py */ #include "config.h" diff --git a/test/captures/gitOverTCP.pcap b/test/captures/gitOverTCP.pcap new file mode 100644 index 0000000000000000000000000000000000000000..e2c33f46644fbe1a68da46b21059bc0602c5cbad GIT binary patch literal 582 zcmca|c+)~A1{MYw`2U}Qff2~zJ#{`_go%;C1;_?r4hD6}%vnJp3__+%91N}u3}!Pg zFfcf9QCezAa)xbjMq*A*emPjAIJF4q65afQ5};#1BIfx?S*gh-x@q}Exrrqp zwT2*L3_z}oy1~TY1#}?@!~6{LKiKCst$q$bSKjUe`5NTX11c(~KrRIOz92y2SJN$C zuq#cH^K)|(^HOYK4g;ASc$10Y6wp)<#xQwLt3TLeUNn>E!A