More tests.
[m6w6/libmemcached] / tests / Makefile.am
1 INCLUDES = -I$(top_builddir)/include -I$(top_builddir)/lib
2 LDADDS = ../lib/libmemcached.la
3
4 EXTRA_DIST = output.res output2.res\
5 r/memcat.res\
6 r/memcp.res\
7 r/memrm.res\
8 r/memslap.res\
9 r/memstat.res\
10 t/memcat.test\
11 t/memcp.test\
12 t/memrm.test\
13 t/memslap.test\
14 t/memstat.test
15
16 LIBS =
17
18 noinst_HEADERS = test.h
19 noinst_PROGRAMS = testapp
20
21 testapp_SOURCES = test.c function.c ../src/generator.c ../src/execute.c
22 testapp_LDADD = $(LDADDS)
23
24 record:
25 ./testapp > output.res
26 sh t/memcat.test > r/memcat.res
27 sh t/memcp.test > r/memcp.res
28 sh t/memrm.test > r/memrm.res
29 sh t/memslap.test > r/memslap.res
30 sh t/memstat.test > r/memstat.res
31
32 record-extended:
33 ./testapp extended > output2.res
34
35 test: testapp
36 ./testapp > output.cmp
37 diff output.res output.cmp
38 sh t/memcat.test > r/memcat.cmp
39 diff r/memcat.res r/memcat.cmp
40 sh t/memcp.test > r/memcp.cmp
41 diff r/memcp.res r/memcp.cmp
42 sh t/memrm.test > r/memrm.cmp
43 diff r/memrm.res r/memrm.cmp
44 sh t/memslap.test > r/memslap.cmp
45 diff r/memslap.res r/memslap.cmp
46 sh t/memstat.test > r/memstat.cmp
47 diff r/memstat.res r/memstat.cmp
48
49 test-extended: testapp
50 ./testapp extended > output.cmp
51 diff output2.res output.cmp
52
53 valgrind:
54 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp