summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 2155609a1afe0e46d9d61cd25b315f63aad31f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
MAINTAINERCLEANFILES = Makefile.in

INCLUDES = -I$(top_builddir) -I$(top_srcdir) -I$(top_srcdir)/src -I$(srcdir)
BOOST_TEST_LDFLAGS = @BOOST_UNIT_TEST_LIBS@
GMOCK_LDFLAGS = -lgmock -lgtest
AM_CPPFLAGS = -DBOOST_TEST_DYN_LINK -DSRCDIR=\"$(srcdir)\"
LDADD = $(top_builddir)/src/loggers.o			       \
$(top_builddir)/src/gtk/controllers/libgtk-controllers.a \
$(top_builddir)/src/gtk/views/libgtk-views.a \
$(top_builddir)/src/generic/apt/matching/libgeneric-matching.a \
$(top_builddir)/src/cmdline/libcmdline.a \
$(top_builddir)/src/generic/apt/libgeneric-apt.a	       \
$(top_builddir)/src/generic/apt/matching/libgeneric-matching.a \
$(top_builddir)/src/generic/problemresolver/libgeneric-problemresolver.a   \
$(top_builddir)/src/cmdline/mocks/libcmdline-mocks.a \
$(top_builddir)/src/cmdline/libcmdline.a \
$(top_builddir)/src/generic/util/libgeneric-util.a \
-lcppunit \
$(BOOST_TEST_LDFLAGS) $(GMOCK_LDFLAGS)

check_PROGRAMS = gtest_test cppunit_test boost_test gtest_test

noinst_PROGRAMS = interactive_set_test

TESTS = gtest_test cppunit_test boost_test gtest_test

EXTRA_DIST = file_caches

interactive_set_test_SOURCES = interactive_set_test.cc

test_choice.o test_choice_set.o test_resolver.o: $(top_srcdir)/src/generic/problemresolver/*.h
test_promotion_set.o test_resolver_costs.o test_resolver_hints.o: $(top_srcdir)/src/generic/problemresolver/*.h

# Note: test_apt_universe is not built by default because it takes way
# too long.  Of course, ideally this would be done in a less ad-hoc
# way...
cppunit_test_SOURCES = \
	cppunit_test_main.cc \
	test_choice.cc \
	test_choice_set.cc \
	test_config_pusher.cc \
	test_dense_setset.cc \
	test_incremental_expression.cc \
	test_matching.cc \
	test_misc.cc \
	test_parsers.cc \
	test_promotion_set.cc \
	test_resolver.cc \
	test_resolver_costs.cc \
	test_resolver_hints.cc \
	test_setset.cc \
	test_tags.cc \
	test_temp.cc \
	test_wtree.cc

boost_test_SOURCES = \
	boost_test_main.cc \
	test_dynamic_list.cc \
	test_dynamic_set.cc \
	test_enumerator.cc \
	test_file_cache.cc \
	test_logging.cc \
	test_search_input_controller.cc \
	test_sqlite.cc

gtest_test_SOURCES = \
	gtest_test_main.cc \
	test_cmdline_progress_display.cc \
	test_cmdline_search_progress.cc \
	test_logging.cc \
	test_teletype_mock.cc \
	test_terminal_mock.cc \
	test_transient_message.cc