Next pass through the framework. Also removing boost files since we don't use them...
[m6w6/libmemcached] / libtest / include.am
1 # vim:ft=automake
2 # Copyright (C) 2011 Data Differential (http://datadifferential.com/)
3 # All rights reserved.
4 #
5 # Use and distribution licensed under the BSD license. See
6 # the COPYING file in the parent directory for full text.
7 #
8 # included from Top Level Makefile.am
9 # All paths should be given relative to the root
10 #
11
12 LIBUTEST_TMP = ${abs_top_builddir}/tests/var/tmp/
13
14 VALGRIND_COMMAND= $(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes --track-fds=yes --malloc-fill=A5 --free-fill=DE
15
16 CLEANFILES+= \
17 tests/var/log/* \
18 tests/var/run/* \
19 tests/var/tmp/*
20
21 noinst_HEADERS+= \
22 libtest/callbacks.h \
23 libtest/collection.h \
24 libtest/common.h \
25 libtest/core.h \
26 libtest/error.h \
27 libtest/failed.h \
28 libtest/framework.h \
29 libtest/get.h \
30 libtest/killpid.h \
31 libtest/runner.h \
32 libtest/server.h \
33 libtest/stats.h \
34 libtest/strerror.h \
35 libtest/test.h \
36 libtest/test.hpp \
37 libtest/visibility.h \
38 libtest/wait.h
39
40 noinst_LTLIBRARIES+= libtest/libserver.la
41 libtest_libserver_la_SOURCES= \
42 libtest/killpid.cc \
43 libtest/memcached.cc \
44 libtest/server.cc
45
46 noinst_LTLIBRARIES+= libtest/libtest.la
47 libtest_libtest_la_SOURCES=\
48 libtest/framework.cc \
49 libtest/test.cc
50 libtest_libtest_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION} -DBUILDING_LIBTEST
51 libtest_libtest_la_CPPFLAGS= ${AM_CPPFLAGS}
52
53 clearn-var:
54 @rm -f tests/var/log/*
55 @rm -f tests/var/run/*
56 @rm -f tests/var/tmp/*
57
58
59 tests/var: tests/var/log tests/var/tmp tests/var/run clearn-var
60 $(mkdir_p) tests/var
61
62 tests/var/log:
63 $(mkdir_p) tests/var/log
64
65 tests/var/tmp:
66 $(mkdir_p) tests/var/tmp
67
68 tests/var/run:
69 $(mkdir_p) tests/var/run
70
71 noinst_PROGRAMS+= libtest/wait
72
73 libtest_wait_SOURCES= libtest/wait.cc