source: test/Makefile @ ec19a99

develop
Last change on this file since ec19a99 was ec19a99, checked in by Shane Alcock <salcock@…>, 22 months ago

Add test case for trace_get_wire_length()

Given that there is often some confusion around the wire length
and whether we count the FCS as wire length or not (and what do
we do for formats that don't save the FCS, i.e. pcap), we should
really have a test that will at least alert us if someone has
changed how wire length is calculated for one of the formats.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1
2RM=rm
3PREFIX=../
4CC=gcc
5
6INCLUDE = -I$(PREFIX)/lib -I$(PREFIX)/libpacketdump
7CFLAGS = -Wall -Wimplicit -Wformat -W -pedantic -pipe -g -O2 -std=gnu99 -pthread \
8                -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
9CFLAGS += $(INCLUDE)
10libdir = $(PREFIX)/lib/.libs:$(PREFIX)/libpacketdump/.libs
11LDLIBS = -L$(PREFIX)/lib/.libs -L$(PREFIX)/libpacketdump/.libs -ltrace -lpacketdump
12
13BINS_DATASTRUCT = test-datastruct-vector test-datastruct-deque \
14        test-datastruct-ringbuffer
15BINS_PARALLEL = test-format-parallel test-format-parallel-hasher \
16        test-format-parallel-singlethreaded test-format-parallel-stressthreads \
17        test-format-parallel-singlethreaded-hasher test-format-parallel-reporter test-tracetime-parallel
18
19BINS = test-pcap-bpf test-event test-time test-dir test-wireless test-errors \
20        test-plen test-autodetect test-ports test-fragment test-live \
21        test-live-snaplen test-vxlan test-setcaplen test-wlen \
22        $(BINS_DATASTRUCT) $(BINS_PARALLEL)
23
24.PHONY: all clean distclean install depend test
25
26all: $(BINS) test-drops test-format test-decode test-decode2 test-write test-convert test-convert2
27
28clean:
29        $(RM) $(BINS) $(OBJS) test-format test-decode test-convert \
30        test-decode2 test-write test-drops test-convert2
31
32distclean:
33        $(RM) $(BINS) $(OBJS) test-format test-decode test-convert test-drops test-convert2
34
35install:
36        @true
37
38# vim: noet ts=8 sw=8
Note: See TracBrowser for help on using the repository browser.