This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Tshark for plugin testing

0

Hi, i have created a Dissector for some new protocols. Now i have to build a continious integration job with Jenkins, where i have to test if the plugin is working correctly. So i thought i can use tshark to dissect a pcap file and than build an job which is checking the createt xml if the dissection was successfull.

Now i have the problem, that tshark isnt loading my plugin. Is tshark able to load plugins? If yes, how do i load plugins with tshark?

greetings Christina

asked 30 Sep '14, 05:29

Venturina's gravatar image

Venturina
1779
accept rate: 0%


One Answer:

1

tshark uses the same plugins as Wireshark, and loads them in the same manner. tshark is also used in this way in the Wireshark CI build tests, see the test directory of the Wireshark sources for some test script examples.

As to your actual issue, it's likely that your CI environment isn't placing the built plugin in the correct place for the copy of tshark that is being run by the tests to load.

answered 30 Sep '14, 05:53

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thanks, it works now.

(01 Oct '14, 01:43) Venturina

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(01 Oct '14, 01:50) grahamb ♦