source: test/Makefile @ cd7eec7

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since cd7eec7 was cd7eec7, checked in by Shane Alcock <salcock@…>, 15 years ago

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

  • Property mode set to 100644
File size: 1.5 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-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                LD_LIBRARY_PATH=$(libdir)                       \
22                 ./$$i || exit $$?;                             \
23        done                           
24        @echo All tests passed
25
26test-format-all: test-format
27        @for i in erf pcap wtf pcapfile duck; do                        \
28                echo \* $$i;                                    \
29                LD_LIBRARY_PATH=$(libdir)                       \
30                ./test-format $$i || exit $$?;                  \
31        done
32       
33test-convert-all: test-convert
34# Not all types are convertable, for instance libtrace doesn't
35# do rtclient output, and erf doesn't support 802.11
36        @LD_LIBRARY_PATH=$(libdir) ./test-convert erf erf
37        @LD_LIBRARY_PATH=$(libdir) ./test-convert erf pcap
38        @LD_LIBRARY_PATH=$(libdir) ./test-convert pcap erf
39        @LD_LIBRARY_PATH=$(libdir) ./test-convert pcapfile erf
40        #@LD_LIBRARY_PATH=$(libdir) ./test-convert rtclient erf
41        #@LD_LIBRARY_PATH=$(libdir) ./test-convert rtclient pcap
42        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf pcap
43        @LD_LIBRARY_PATH=$(libdir) ./test-convert wtf wtf
44        @LD_LIBRARY_PATH=$(libdir) ./test-convert duck duck
45 
46clean:
47        $(RM) $(BINS) $(OBJS) test-format
48
49distclean:
50        $(RM) $(BINS) $(OBJS) test-format
51
52install:
53        @true
54
55# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.