Makefile.am 856 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 17
AREA_TESTS = \
	   area/test_area
18

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

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

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

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

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