Makefile.am 1009 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

17
AREA_TESTS = \
18 19
	area/test_area \
	area/test_linux
20

21 22
LAYOUT_TESTS = layout/test_layout

23 24
TILING_TESTS = tiling/test_tiling \
	       tiling/test_tiling_2d
25

26 27
DMA_LINUX_TESTS = dma/test_dma_linux_seq \
		  dma/test_dma_linux_par
28

29 30
SCRATCH_TESTS = scratch/test_scratch_seq \
		scratch/test_scratch_par
31

32 33 34 35
if RUN_CUDA
AREA_TESTS += area/test_cuda
endif

36
# unit tests
37
UNIT_TESTS = $(UTILS_TESTS) \
38
	     $(TILING_TESTS) \
39
	     $(LAYOUT_TESTS) \
40
	     $(BINDING_TESTS) \
41
	     $(AREA_TESTS) \
42 43
	     $(DMA_LINUX_TESTS) \
	     $(SCRATCH_TESTS)
44

45
# all tests
46
TST_PROGS = $(UNIT_TESTS)
47 48
check_PROGRAMS = $(TST_PROGS)
TESTS = $(TST_PROGS)