Changeset cd7eec7 for test


Ignore:
Timestamp:
05/16/06 14:37:22 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
abc66e7
Parents:
da34e20
Message:

Added a new format for reading and writing DUCK packets
Added corresponding test cases for DUCK
Removed references to RT_DUCK_* from format_rt
Added a configuration option for meta-data frequency (used solely for DUCK frequency at the moment) and updated other formats to ignore the option

Location:
test
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile

    raf1e721 rcd7eec7  
    2525
    2626test-format-all: test-format
    27         @for i in erf pcap wtf pcapfile; do                     \
     27        @for i in erf pcap wtf pcapfile duck; do                        \
    2828                echo \* $$i;                                    \
    2929                LD_LIBRARY_PATH=$(libdir)                       \
     
    4242        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf pcap
    4343        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf wtf
     44        @LD_LIBRARY_PATH=$(libdir) ./test-convert duck duck
    4445 
    4546clean:
  • test/test-convert.c

    r8f851f3 rcd7eec7  
    8080        if (!strcmp(type,"pcapfile"))
    8181                return "pcapfile:traces/100_packets.pcap";
     82        if (!strcmp(type, "duck"))
     83                return "duck:traces/100_packets.duck";
    8284        return "unknown";
    8385}
     
    9092        if (!strcmp(type,"wtf"))
    9193                return "wtf:traces/wed.out.wtf";
     94        if (!strcmp(type,"duck"))
     95                return "duck:traces/100_packets.out.duck";
    9296        return "unknown";
    9397}
  • test/test-format.c

    r8f851f3 rcd7eec7  
    7171        if (!strcmp(type,"pcapfile"))
    7272                return "pcapfile:traces/100_packets.pcap";
     73        if (!strcmp(type, "duck"))
     74                return "duck:traces/100_packets.duck";
    7375        return "unknown";
    7476}
     
    9294
    9395        if (strcmp(argv[1],"rtclient")==0) expected=101;
    94 
     96       
    9597        level=0;
    9698
Note: See TracChangeset for help on using the changeset viewer.