Skip to content

Files

Latest commit

author
Andrew Fleenor
Oct 25, 2013
b13c49e · Oct 25, 2013

History

History
This branch is up to date with andrewf/pcap2har:master.

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 21, 2012
May 14, 2011
May 14, 2011
May 14, 2011
Oct 25, 2013
Oct 25, 2013
May 14, 2011
Oct 25, 2013
May 14, 2011
Oct 25, 2013
May 14, 2011
Oct 25, 2013
May 14, 2011
Aug 21, 2012
Oct 25, 2013
May 14, 2011
Oct 25, 2013
May 14, 2011
Oct 25, 2013
Aug 21, 2012
Dec 14, 2012
Aug 21, 2012
May 14, 2011
Oct 25, 2013
What we have in this director is a set of pcaps to be used as tests for
pcap2har. Many of them exhibited specific previous bugs in pcap2har.
Also included are HAR's that are expected from the pcaps. They thus 
serve as a primitive regression test suite.

To run the tests, just run the bash script run_tests.sh. This iterates
through all the pcaps in the directory, runs pcap2har on them, and diffs
the output with saved hars to check for errors. If either pcap2har or the diff
fails, the log is saved and the script continues to check files.

Here is a list of pcaps, their properties, and where they came from.

http.pcap
Previously http.cap. A simple http pageload. It has some awkward feature
I forgot.

fhs.pcap
A complete pageload of andrewfleenor.users.sourceforge.net/fhs/fhs.xml.
Streams are gzip compressed.

fhs_ncomp.pcap
Above, but not compressed.

empty.pcap
Empty file. dpkt doesn't like it, but we have to handle it.

out-of-order.pcap
From from Dekel Amrani. A big pcap, with out-of-order starting packet on
incoming stream of tcp port 59743.

github.pcap
A pageload of github.

pcapr.net.pcap
A pageload of pcapr.net, an online pcap repository. Includes a redirect
from pcapr.net to pcapr.net/home

missing_response.pcap:
A flow from fhs.pcap with one of the responses missing, to test -k functionality

request_only.pcap:
Flow with a request and nothing else, to handle a different failure case of -k