Ignore:
Timestamp:
11/13/06 17:35:26 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
f9d2f04
Parents:
6d977c9
Message:

Add new legacy tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-convert.c

    rac62ea2 rcec8028  
    8080        if (!strcmp(type,"pcapfile"))
    8181                return "pcapfile:traces/100_packets.pcap";
     82        if (!strcmp(type,"legacyatm"))
     83                return "legacyatm:traces/legacyatm.gz";
     84        if (!strcmp(type,"legacypos"))
     85                return "legacypos:traces/legacypos.gz";
     86        if (!strcmp(type,"legacyeth"))
     87                return "legacyeth:traces/legacyeth.gz";
    8288        if (!strcmp(type, "duck"))
    8389                return "duck:traces/100_packets.duck";
     
    160166        if (error)
    161167                return error;
     168
     169        printf("now to read it again\n");
    162170
    163171        /* Now read it back in again and check it's all kosher */
     
    182190                        break;
    183191                }
    184                 assert(trace_get_capture_length(packet)
    185                                 == trace_get_capture_length(packet2));
     192                if (trace_get_capture_length(packet) != trace_get_capture_length(packet2)) {
     193                        printf("capturelen %i!=%i\n",
     194                                        trace_get_capture_length(packet),
     195                                        trace_get_capture_length(packet2));
     196                        assert(0);
     197                }
    186198                assert(trace_get_wire_length(packet)
    187199                                == trace_get_wire_length(packet2));
Note: See TracChangeset for help on using the changeset viewer.