summaryrefslogtreecommitdiff
path: root/src/tests/Makefile.am
blob: 43b3eb130507014be2ccca3e1d08627bd3d08b77 (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
74
75
76
77
INCLUDES = \
	-I$(top_srcdir)/src

noinst_PROGRAMS = \
	test-modem-helpers \
	test-charsets \
	test-qcdm-serial-port \
	test-at-serial-port \
	test-sms

test_modem_helpers_SOURCES = \
	test-modem-helpers.c

test_modem_helpers_CPPFLAGS = \
	$(MM_CFLAGS)

test_modem_helpers_LDADD = \
	$(top_builddir)/src/libmodem-helpers.la \
	$(MM_LIBS)

test_charsets_SOURCES = \
	test-charsets.c

test_charsets_CPPFLAGS = \
	$(MM_CFLAGS)

test_charsets_LDADD = \
	$(top_builddir)/src/libmodem-helpers.la \
	$(MM_LIBS)

test_qcdm_serial_port_SOURCES = \
	test-qcdm-serial-port.c

test_qcdm_serial_port_CPPFLAGS = \
	$(MM_CFLAGS) \
	-I$(top_srcdir)

test_qcdm_serial_port_LDADD = \
	$(MM_LIBS) \
	$(top_builddir)/src/libserial.la \
	$(top_builddir)/src/libmodem-helpers.la \
	$(top_builddir)/libqcdm/src/libqcdm.la \
	-lutil

test_at_serial_port_SOURCES = \
	test-at-serial-port.c

test_at_serial_port_CPPFLAGS = \
	$(MM_CFLAGS) \
	-I$(top_srcdir) \
	-I$(top_srcdir)/src

test_at_serial_port_LDADD = \
	$(MM_LIBS) \
	$(top_builddir)/src/libserial.la \
	$(top_builddir)/src/libmodem-helpers.la \
	-lutil

test_sms_SOURCES = \
	test-sms.c

test_sms_CFLAGS = \
	$(MM_CFLAGS)

test_sms_LDADD = \
	$(top_builddir)/src/libmodem-helpers.la \
	$(MM_LIBS)

if WITH_TESTS

check-local: test-modem-helpers
	$(abs_builddir)/test-modem-helpers
	$(abs_builddir)/test-charsets
	$(abs_builddir)/test-qcdm-serial-port
	$(abs_builddir)/test-sms

endif