Changeset 7e94aee for test


Ignore:
Timestamp:
11/10/06 11:07:51 (14 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:
ef8358e
Parents:
67825b2
Message:

update tests to include legacyatm, and make sure we test pcapfile writing

Location:
test
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile

    rc3809a2 r7e94aee  
    4444        @LD_LIBRARY_PATH="$(libdir)" \
    4545        ./test-decode2 pcap:traces/radius.pcap
    46         @for i in erf pcap wtf pcapfile duck; do                \
     46        @for i in erf pcap wtf pcapfile duck legacyatm; do      \
    4747                echo \* Read $$i;                               \
    4848                rm -f traces/*.out.*;                           \
     
    5454
    5555test-write-all: test-write
    56         @for i in erf pcap; do                                  \
     56        @for i in erf pcap pcapfile; do                         \
    5757                echo \* Write $$i;                              \
    5858                rm -f traces/*.out.*;                           \
     
    9090        @rm -f traces/*.out.*
    9191        @LD_LIBRARY_PATH="$(libdir)" ./test-convert wtf pcap
     92        @echo " * legacyatm -> pcapfile"
     93        @rm -f traces/*.out.*
     94        @LD_LIBRARY_PATH="$(libdir)" ./test-convert wtf pcapfile
     95        @echo " * legacyatm -> pcap"
     96        @rm -f traces/*.out.*
     97        @LD_LIBRARY_PATH="$(libdir)" ./test-convert wtf pcap
    9298        @echo " * wtf -> wtf"
    9399        #@rm -f traces/*.out.*
    94100        #@LD_LIBRARY_PATH="$(libdir)" ./test-convert wtf wtf
    95101        @echo " * duck -> duck"
    96         @rm -f traces/*.out.*
    97         @LD_LIBRARY_PATH="$(libdir)" ./test-convert duck duck
     102        #@rm -f traces/*.out.*
     103        #@LD_LIBRARY_PATH="$(libdir)" ./test-convert duck duck
    98104 
    99105clean:
  • test/test-decode.c

    rd50e83b r7e94aee  
    7474        if (!strcmp(type, "duck"))
    7575                return "duck:traces/100_packets.duck";
     76        if (!strcmp(type, "legacyatm"))
     77                return "legacyatm:traces/legacyatm.gz";
    7678        return "unknown";
    7779}
  • test/test-format.c

    rf208f92 r7e94aee  
    7373        if (!strcmp(type, "duck"))
    7474                return "duck:traces/100_packets.duck";
     75        if (!strcmp(type, "legacyatm"))
     76                return "legacyatm:traces/legacyatm.gz";
    7577        return "unknown";
    7678}
  • test/test-write.c

    r428c837 r7e94aee  
    5353        if (!strcmp(type,"pcap"))
    5454                return "pcap:traces/100_packets.out.pcap";
     55        if (!strcmp(type,"pcapfile"))
     56                return "pcapfile:traces/100_packets.out.pcap";
    5557        if (!strcmp(type,"wtf"))
    5658                return "wtf:traces/wed.out.wtf";
Note: See TracChangeset for help on using the changeset viewer.