Changeset 33fead9
- Timestamp:
- 06/23/06 13:21:49 (15 years ago)
- 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:
- 5afbb78
- Parents:
- d50e83b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile
re7246a0 r33fead9 7 7 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 8 8 CFLAGS += $(INCLUDE) 9 libdir = $(PREFIX)/lib/.libs 10 LDLIBS = -L$( libdir)-ltrace9 libdir = $(PREFIX)/lib/.libs:$(PREFIX)/libpacketdump/.libs 10 LDLIBS = -L$(PREFIX)/lib/.libs -L $(PREFIX)/libpacketdump/.libs -ltrace 11 11 12 BINS = test-pcap-bpf test-event test-time test-dir test-decode#test-seek12 BINS = test-pcap-bpf test-event test-time test-dir #test-seek 13 13 14 14 .PHONY: all clean distclean install depend test … … 16 16 all: $(BINS) 17 17 18 test: all test-format-all test-convert-all 18 test: all test-format-all test-convert-all test-write-all test-programs 19 20 test-decode: LDLIBS+=-lpacketdump 21 22 test-programs: $(BINS) 19 23 @for i in $(BINS); do \ 20 24 echo \* $$i; \ 21 25 rm -f traces/*.out.*; \ 22 LD_LIBRARY_PATH= $(libdir)\26 LD_LIBRARY_PATH="$(libdir)" \ 23 27 ./$$i || exit $$?; \ 24 28 done 25 29 @echo All tests passed 26 30 27 test-format-all: test-format 31 test-format-all: test-format test-decode 28 32 @for i in erf pcap wtf pcapfile duck; do \ 29 echo \* $$i;\33 echo \* Read $$i; \ 30 34 rm -f traces/*.out.*; \ 31 LD_LIBRARY_PATH= $(libdir)\35 LD_LIBRARY_PATH="$(libdir)" \ 32 36 ./test-format $$i || exit $$?; \ 37 LD_LIBRARY_PATH="$(libdir)" \ 38 ./test-decode $$i || exit $$?; \ 39 done 40 41 test-write-all: test-write 42 @for i in erf pcap; do \ 43 echo \* Write $$i; \ 44 rm -f traces/*.out.*; \ 45 LD_LIBRARY_PATH="$(libdir)" \ 46 ./test-write $$i || exit $$?; \ 33 47 done 34 48 … … 39 53 @echo " * erf -> erf" 40 54 @rm -f traces/*.out.* 41 @LD_LIBRARY_PATH= $(libdir)./test-convert erf erf55 @LD_LIBRARY_PATH="$(libdir)" ./test-convert erf erf 42 56 @echo " * erf -> pcap" 43 @LD_LIBRARY_PATH= $(libdir)./test-convert erf pcap57 @LD_LIBRARY_PATH="$(libdir)" ./test-convert erf pcap 44 58 @echo " * pcap -> erf" 45 59 @rm -f traces/*.out.* 46 @LD_LIBRARY_PATH= $(libdir)./test-convert pcap erf60 @LD_LIBRARY_PATH="$(libdir)" ./test-convert pcap erf 47 61 @echo " * pcapfile -> erf" 48 62 @rm -f traces/*.out.* 49 @LD_LIBRARY_PATH= $(libdir)./test-convert pcapfile erf50 @#LD_LIBRARY_PATH= $(libdir)./test-convert rtclient erf51 @#LD_LIBRARY_PATH= $(libdir)./test-convert rtclient pcap63 @LD_LIBRARY_PATH="$(libdir)" ./test-convert pcapfile erf 64 @#LD_LIBRARY_PATH="$(libdir)" ./test-convert rtclient erf 65 @#LD_LIBRARY_PATH="$(libdir)" ./test-convert rtclient pcap 52 66 @echo " * wtf -> pcap" 53 67 @rm -f traces/*.out.* 54 @LD_LIBRARY_PATH= $(libdir)./test-convert wtf pcap68 @LD_LIBRARY_PATH="$(libdir)" ./test-convert wtf pcap 55 69 @echo " * wtf -> wtf" 56 70 @rm -f traces/*.out.* 57 @LD_LIBRARY_PATH= $(libdir)./test-convert wtf wtf71 @LD_LIBRARY_PATH="$(libdir)" ./test-convert wtf wtf 58 72 @echo " * duck -> duck" 59 73 @rm -f traces/*.out.* 60 @LD_LIBRARY_PATH= $(libdir)./test-convert duck duck74 @LD_LIBRARY_PATH="$(libdir)" ./test-convert duck duck 61 75 62 76 clean: 63 $(RM) $(BINS) $(OBJS) test-format 77 $(RM) $(BINS) $(OBJS) test-format test-decode 64 78 65 79 distclean:
Note: See TracChangeset
for help on using the changeset viewer.