Updating test framework for startup/shutdown of memcached.
[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 CLEANFILES+= \
15 tests/var/log/* \
16 tests/var/run/* \
17 tests/var/tmp/*
18
19 noinst_HEADERS+= \
20 libtest/callbacks.h \
21 libtest/collection.h \
22 libtest/common.h \
23 libtest/core.h \
24 libtest/error.h \
25 libtest/failed.h \
26 libtest/framework.h \
27 libtest/get.h \
28 libtest/killpid.h \
29 libtest/runner.h \
30 libtest/server.h \
31 libtest/stats.h \
32 libtest/strerror.h \
33 libtest/test.h \
34 libtest/test.hpp \
35 libtest/visibility.h \
36 libtest/wait.h
37
38 noinst_LTLIBRARIES+= libtest/libserver.la
39 libtest_libserver_la_SOURCES= \
40 libtest/killpid.cc \
41 libtest/memcached.cc \
42 libtest/server.cc
43
44 noinst_LTLIBRARIES+= libtest/libtest.la
45 libtest_libtest_la_SOURCES=\
46 libtest/framework.cc \
47 libtest/test.cc
48 libtest_libtest_la_CFLAGS= ${AM_CFLAGS} ${NO_CONVERSION} -DBUILDING_LIBTEST
49 libtest_libtest_la_CPPFLAGS= ${AM_CPPFLAGS}
50
51 clearn-var:
52 @rm -f tests/var/log/*
53 @rm -f tests/var/run/*
54 @rm -f tests/var/tmp/*
55
56
57 tests/var: tests/var/log tests/var/tmp tests/var/run clearn-var
58 $(mkdir_p) tests/var
59
60 tests/var/log:
61 $(mkdir_p) tests/var/log
62
63 tests/var/tmp:
64 $(mkdir_p) tests/var/tmp
65
66 tests/var/run:
67 $(mkdir_p) tests/var/run
68
69 noinst_PROGRAMS+= libtest/wait
70
71 libtest_wait_SOURCES= libtest/wait.cc