source: test/Makefile @ 0ff6ddf

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 0ff6ddf was 0ff6ddf, checked in by Perry Lorier <perry@…>, 15 years ago

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

  • Property mode set to 100644
File size: 1.8 KB
Line 
1
2PREFIX=../
3CC=gcc
4
5INCLUDE = -I$(PREFIX)/lib
6CFLAGS = -Wall -Wimplicit -Wformat -pipe -g -O2 -D_FILE_OFFSET_BITS=64 \
7                -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
8CFLAGS += $(INCLUDE)
9libdir = $(PREFIX)/lib/.libs
10LDLIBS = -L$(libdir) -ltrace
11
12BINS = test-pcap-bpf test-event test-time test-dir #test-seek
13
14.PHONY: all clean distclean install depend test
15
16all: $(BINS) 
17
18test: all test-format-all test-convert-all             
19        @for i in $(BINS); do                                   \
20                echo \* $$i;                                    \
21                rm -f traces/*.out.*;                           \
22                LD_LIBRARY_PATH=$(libdir)                       \
23                 ./$$i || exit $$?;                             \
24        done                           
25        @echo All tests passed
26
27test-format-all: test-format
28        @for i in erf pcap wtf pcapfile duck; do                \
29                echo \* $$i;                                    \
30                rm -f traces/*.out.*;                           \
31                LD_LIBRARY_PATH=$(libdir)                       \
32                ./test-format $$i || exit $$?;                  \
33        done
34       
35test-convert-all: test-convert
36# Not all types are convertable, for instance libtrace doesn't
37# do rtclient output, and erf doesn't support 802.11
38        @echo \* Conversions
39        @echo " * erf -> erf"
40        @rm -f traces/*.out.*
41        @LD_LIBRARY_PATH=$(libdir) ./test-convert erf erf
42        @echo " * erf -> pcap"
43        @LD_LIBRARY_PATH=$(libdir) ./test-convert erf pcap
44        @echo " * pcap -> erf"
45        @rm -f traces/*.out.*
46        @LD_LIBRARY_PATH=$(libdir) ./test-convert pcap erf
47        @echo " * pcapfile -> erf"
48        @rm -f traces/*.out.*
49        @LD_LIBRARY_PATH=$(libdir) ./test-convert pcapfile erf
50        @#LD_LIBRARY_PATH=$(libdir) ./test-convert rtclient erf
51        @#LD_LIBRARY_PATH=$(libdir) ./test-convert rtclient pcap
52        @echo " * wtf -> pcap"
53        @rm -f traces/*.out.*
54        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf pcap
55        @echo " * wtf -> wtf"
56        @rm -f traces/*.out.*
57        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf wtf
58        @echo " * duck -> duck"
59        @rm -f traces/*.out.*
60        @LD_LIBRARY_PATH=$(libdir) ./test-convert duck duck
61 
62clean:
63        $(RM) $(BINS) $(OBJS) test-format
64
65distclean:
66        $(RM) $(BINS) $(OBJS) test-format
67
68install:
69        @true
70
71# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.