Makefile.am 866 Bytes
Newer Older
1 2 3
AM_COLOR_TESTS = yes

# add OpenMP to flags for test programs
4
AM_CFLAGS = -I$(top_srcdir)/include
5
AM_LDFLAGS = ../src/libaml.la
6 7 8 9 10 11

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

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

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

20 21
TILING_TESTS = tiling/test_tiling \
	       tiling/test_tiling_2d
22

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

26 27
SCRATCH_TESTS = scratch/test_scratch_seq \
		scratch/test_scratch_par
28

29
# unit tests
30
UNIT_TESTS = $(UTILS_TESTS) \
31 32
	     $(TILING_TESTS) \
	     $(BINDING_TESTS) \
33
	     $(AREA_TESTS) \
34 35
	     $(DMA_LINUX_TESTS) \
	     $(SCRATCH_TESTS)
36

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