Changeset 0ff6ddf for test


Ignore:
Timestamp:
06/06/06 17:32:24 (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:
b0acff7
Parents:
41f22e4
Message:

Add demotion of packets from LINUX_SLL to ethernet when writing ERF packets.
We don't need the extra header to store the direction information, and erf
doesn't have a type for linux-sll /anyway/.

This also adds a test which takes a packet, promotes it and demotes it again
which should catch direction related bugs

Closes: #21

Location:
test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile

    r961f687 r0ff6ddf  
    1010LDLIBS = -L$(libdir) -ltrace
    1111
    12 BINS = test-pcap-bpf test-event test-time #test-seek
     12BINS = test-pcap-bpf test-event test-time test-dir #test-seek
    1313
    1414.PHONY: all clean distclean install depend test
     
    1919        @for i in $(BINS); do                                   \
    2020                echo \* $$i;                                    \
     21                rm -f traces/*.out.*;                           \
    2122                LD_LIBRARY_PATH=$(libdir)                       \
    2223                 ./$$i || exit $$?;                             \
     
    2526
    2627test-format-all: test-format
    27         @for i in erf pcap wtf pcapfile duck; do                        \
     28        @for i in erf pcap wtf pcapfile duck; do                \
    2829                echo \* $$i;                                    \
     30                rm -f traces/*.out.*;                           \
    2931                LD_LIBRARY_PATH=$(libdir)                       \
    3032                ./test-format $$i || exit $$?;                  \
     
    3638        @echo \* Conversions
    3739        @echo " * erf -> erf"
     40        @rm -f traces/*.out.*
    3841        @LD_LIBRARY_PATH=$(libdir) ./test-convert erf erf
    3942        @echo " * erf -> pcap"
    4043        @LD_LIBRARY_PATH=$(libdir) ./test-convert erf pcap
    4144        @echo " * pcap -> erf"
     45        @rm -f traces/*.out.*
    4246        @LD_LIBRARY_PATH=$(libdir) ./test-convert pcap erf
    4347        @echo " * pcapfile -> erf"
     48        @rm -f traces/*.out.*
    4449        @LD_LIBRARY_PATH=$(libdir) ./test-convert pcapfile erf
    4550        @#LD_LIBRARY_PATH=$(libdir) ./test-convert rtclient erf
    4651        @#LD_LIBRARY_PATH=$(libdir) ./test-convert rtclient pcap
    4752        @echo " * wtf -> pcap"
     53        @rm -f traces/*.out.*
    4854        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf pcap
    4955        @echo " * wtf -> wtf"
     56        @rm -f traces/*.out.*
    5057        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf wtf
    5158        @echo " * duck -> duck"
     59        @rm -f traces/*.out.*
    5260        @LD_LIBRARY_PATH=$(libdir) ./test-convert duck duck
    5361 
Note: See TracChangeset for help on using the changeset viewer.