source: test/Makefile @ 02b7297

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 02b7297 was 961f687, checked in by Perry Lorier <perry@…>, 16 years ago

Validate conversions actually worked.

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