aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/tests/Makefile.am
blob: 8a2e96e3404d6e22b647f6e11583a40e37c0907e (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
NULL =
EXTRA_DIST = $(NULL)

AM_CFLAGS = \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/samsung-ipc \
	$(OPENSSL_CFLAGS) \
	$(NULL)

if WANT_STRICT_CFLAGS
AM_CFLAGS += $(STRICT_CFLAGS)
endif

if WANT_DEBUG
AM_CFLAGS += -DDEBUG
endif

bin_PROGRAMS = libsamsung-ipc-test

libsamsung_ipc_test_SOURCES = \
	main.c \
	partitions/android.c \
	partitions/android.h \
	$(NULL)

libsamsung_ipc_test_LDADD = $(top_builddir)/samsung-ipc/libsamsung-ipc.la
libsamsung_ipc_test_LDFLAGS =

# TODO: Find a way to make test more modular and represent each run of
# libsamsung-ipc-test in TEST while having it implemented in a single
# python file
if WANT_VALGRIND_CHECKING
AM_TESTS_ENVIRONMENT = VALGRIND='$(VALGRIND)'; export VALGRIND;
endif
PY_LOG_COMPILER = $(PYTHON)
TEST_EXTENSIONS = .py
TESTS = libsamsung-ipc-test.py
EXTRA_DIST += $(TESTS)