summaryrefslogtreecommitdiff
path: root/gck/tests/Makefile.am
blob: 99aaf10037599213c06962826f3e6ed6dbb8bbba (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

INCLUDES = \
	-I$(top_builddir) \
	-I$(top_srcdir) \
	-DSRCDIR="\"@abs_srcdir@\"" \
	-DBUILDDIR="\"$(builddir)\"" \
	-DGCK_API_SUBJECT_TO_CHANGE \
	$(GLIB_CFLAGS)

LDADD =  \
	libmock-test-module.la \
	$(top_builddir)/gck/libgck-testable.la \
	$(top_builddir)/egg/libegg-test.la \
	$(top_builddir)/egg/libegg-hex.la \
	$(GTHREAD_LIBS) \
	$(GLIB_LIBS) \
	$(GIO_LIBS)

TEST_PROGS = \
	test-gck-attributes \
	test-gck-module \
	test-gck-slot \
	test-gck-session \
	test-gck-object \
	test-gck-crypto \
	test-gck-uri \
	test-gck-enumerator \
	test-gck-modules

check_PROGRAMS = $(TEST_PROGS)

test: $(TEST_PROGS)
	gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)

check-local: test

all-local: $(check_PROGRAMS)

lib_LTLIBRARIES = libmock-test-module.la

libmock_test_module_la_LDFLAGS = \
	-avoid-version

libmock_test_module_la_CFLAGS = \
	-I$(top_srcdir)/gck \
	-I$(top_srcdir) \
	$(GLIB_CFLAGS) \
	-DGCK_API_SUBJECT_TO_CHANGE

libmock_test_module_la_SOURCES = \
	mock-test-module.c

libmock_test_module_la_LIBADD = \
	$(top_builddir)/gck/libgck-testable.la