~drizzle-trunk/drizzle/development

1377.8.1 by pawel
primitive integration of the testing framework with the building process
1
# vim:ft=automake
2
# included from Top Level Makefile.am
3
# All paths should be given relative to the root
4
2037.1.1 by kalebral at gmail
More copyright updates
5
#  Copyright (C) 2010 Monty Taylor
6
#
7
#  This program is free software; you can redistribute it and/or modify
8
#  it under the terms of the GNU General Public License as published by
9
#  the Free Software Foundation; version 2 of the License.
10
#
11
#  This program is distributed in the hope that it will be useful,
12
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
#  GNU General Public License for more details.
15
#
16
#  You should have received a copy of the GNU General Public License
17
#  along with this program; if not, write to the Free Software
18
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
2097.2.4 by Andrew Hutchings
Convert all unit tests to boost::test
20
if HAVE_BOOST_TEST
1712.1.8 by Monty Taylor
Killed the old libdrizzle unittests - they crash hades.
21
check_PROGRAMS += unittests/unittests
2097.2.4 by Andrew Hutchings
Convert all unit tests to boost::test
22
endif
1621 by Monty Taylor
Fixed a missing make distcheck entry.
23
24
noinst_HEADERS += \
25
		  unittests/plugin/plugin_stubs.h \
26
		  unittests/temporal_generator.h
1579.1.1 by Monty Taylor
Rearragned unittests into a single exe because of how we need to link it
27
1643.3.6 by Brian Aker
Added unit test for generators.
28
unit: unittests/unittests
29
	unittests/unittests
30
1775.4.3 by Brian Aker
This disables a test that was calling Session but not freeing the values it
31
# Removed temporal_interval_test, it is not cleaning up after itself. -Brian
32
#
33
#		      unittests/temporal_interval_test.cc
34
#		     
35
1377.8.31 by Paweł Blokus
little fix in include.am
36
unittests_unittests_SOURCES = \
2097.2.3 by Andrew Hutchings
Start of migration to boost::test
37
                              unittests/main.cc \
1620 by Monty Taylor
Merged Pawel from lp:~pblokus/drizzle/unittests-plugin-interfaces
38
			      unittests/atomics_test.cc \
2097.2.4 by Andrew Hutchings
Convert all unit tests to boost::test
39
			      unittests/calendar_test.cc \
40
			      unittests/constrained_value.cc \
41
			      unittests/date_test.cc \
42
			      unittests/date_time_test.cc \
43
			      unittests/global_buffer_test.cc \
44
			      unittests/libdrizzle_test.cc \
45
			      unittests/micro_timestamp_test.cc \
46
			      unittests/nano_timestamp_test.cc \
47
			      unittests/option_context.cc \
48
			      unittests/pthread_atomics_test.cc \
49
			      unittests/table_identifier.cc \
50
			      unittests/temporal_format_test.cc \
51
			      unittests/temporal_generator.cc  \
52
			      unittests/timestamp_test.cc \
53
			      unittests/time_test.cc \
54
			      unittests/utf8_test.cc
1567.3.25 by Monty Taylor
Merged with build.
55
1579.1.1 by Monty Taylor
Rearragned unittests into a single exe because of how we need to link it
56
unittests_unittests_LDADD= \
2449.1.2 by Brian Aker
Additional fixes for libdrizzle.
57
			   $(filter-out drizzled/main.$(OBJEXT), ${am_drizzled_drizzled_OBJECTS}) \
58
			   ${drizzled_drizzled_LDADD} \
59
			   ${BOOST_LIBS} \
60
			   libdrizzle-2.0/libdrizzle-2.0.la \
61
			   ${LTLIBBOOST_UNIT_TEST_FRAMEWORK} ${LTLIBBOOST_UNIT_TEST_FRAMEWORK_MT}