We keep having problems with it being this large so for release I am
[awesomized/libmemcached] / tests / Makefile.am
1 INCLUDES = -I$(top_builddir)/include
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_PROGRAMS = testapp
19
20 testapp_SOURCES = test.c
21 testapp_LDADD = $(LDADDS)
22
23 record:
24 ./testapp > output.res
25 sh t/memcat.test > r/memcat.res
26 sh t/memcp.test > r/memcp.res
27 sh t/memrm.test > r/memrm.res
28 sh t/memslap.test > r/memslap.res
29 sh t/memstat.test > r/memstat.res
30
31 record-extended:
32 ./testapp extended > output2.res
33
34 test: testapp
35 ./testapp > output.cmp
36 diff output.res output.cmp
37 sh t/memcat.test > r/memcat.cmp
38 diff r/memcat.res r/memcat.cmp
39 sh t/memcp.test > r/memcp.cmp
40 diff r/memcp.res r/memcp.cmp
41 sh t/memrm.test > r/memrm.cmp
42 diff r/memrm.res r/memrm.cmp
43 sh t/memslap.test > r/memslap.cmp
44 diff r/memslap.res r/memslap.cmp
45 sh t/memstat.test > r/memstat.cmp
46 diff r/memstat.res r/memstat.cmp
47
48 test-extended: testapp
49 ./testapp extended > output.cmp
50 diff output2.res output.cmp
51
52 valgrind:
53 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp
54
55 valgrind-extended:
56 libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp extended