Changeset ec19a99


Ignore:
Timestamp:
01/11/19 16:15:31 (22 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
e0d922a
Parents:
2a1eebc
Message:

Add test case for trace_get_wire_length()

Given that there is often some confusion around the wire length
and whether we count the FCS as wire length or not (and what do
we do for formats that don't save the FCS, i.e. pcap), we should
really have a test that will at least alert us if someone has
changed how wire length is calculated for one of the formats.

Location:
test
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile

    r568a341 rec19a99  
    1919BINS = test-pcap-bpf test-event test-time test-dir test-wireless test-errors \
    2020        test-plen test-autodetect test-ports test-fragment test-live \
    21         test-live-snaplen test-vxlan test-setcaplen $(BINS_DATASTRUCT) $(BINS_PARALLEL)
     21        test-live-snaplen test-vxlan test-setcaplen test-wlen \
     22        $(BINS_DATASTRUCT) $(BINS_PARALLEL)
    2223
    2324.PHONY: all clean distclean install depend test
  • test/do-tests.sh

    r51276bd rec19a99  
    7979echo \* Testing payload length
    8080do_test ./test-plen
     81
     82echo \* Testing wire length
     83echo \* ERF
     84do_test ./test-wlen erf
     85echo \* pcapfile
     86do_test ./test-wlen pcapfile
     87echo \* pcapfilens
     88do_test ./test-wlen pcapfilens
     89echo \* legacyatm
     90do_test ./test-wlen legacyatm
     91echo \* legacypos
     92do_test ./test-wlen legacypos
     93echo \* legacyeth
     94do_test ./test-wlen legacyeth
     95echo \* rawerf
     96do_test ./test-wlen rawerf
     97echo \* pcap
     98do_test ./test-wlen pcap
     99echo \* tsh
     100do_test ./test-wlen tsh
     101echo \* pcapng
     102do_test ./test-wlen pcapng
    81103
    82104echo \* Testing port numbers
Note: See TracChangeset for help on using the changeset viewer.