Makefile.am 823 Bytes
Newer Older
1 2
AM_COLOR_TESTS = yes

3 4
AM_CFLAGS = -I$(top_srcdir)/include $(PTHREAD_CFLAGS)
AM_LDFLAGS = ../src/libaml.la $(PTHREAD_LIBS)
5 6 7 8 9 10

# valgrind support
if TEST_VALGRIND
TESTS_ENVIRONMENT= @LIBTOOL@ --mode=execute @VALGRIND@ --tool=memcheck -q --leak-check=full
endif

11
UTILS_TESTS = \
12
	      utils/test_bitmap \
13 14
	      utils/test_inner_malloc \
	      utils/test_vector \
15
	      utils/test_version
16

Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
17
AREA_TESTS = \
18 19
	area/test_area \
	area/test_linux
20

21 22
LAYOUT_TESTS = layout/test_layout

23

24 25
DMA_LINUX_TESTS = dma/test_dma_linux_seq \
		  dma/test_dma_linux_par
26

27 28 29 30
if RUN_CUDA
AREA_TESTS += area/test_cuda
endif

31
# unit tests
Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
32
UNIT_TESTS = $(UTILS_TESTS) \
33
	     $(LAYOUT_TESTS) \
34
	     $(BINDING_TESTS) \
35
	     $(AREA_TESTS) \
36
	     $(DMA_LINUX_TESTS)
37

38
# all tests
39
TST_PROGS = $(UNIT_TESTS)
40 41
check_PROGRAMS = $(TST_PROGS)
TESTS = $(TST_PROGS)