Makefile.am 1.01 KB
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
ARENA_JEMALLOC_TESTS = arena/test_jemalloc
15

Swann Perarnau's avatar
Swann Perarnau committed
16
AREA_LINUX_TESTS = \
17 18 19
		   area/test_mmap \
		   area/test_manager \
		   area/test_linux
20

21
AREA_POSIX_TESTS = area/test_posix
22

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

26
BINDING_TESTS = binding/test_binding
27

28 29
DMA_LINUX_TESTS = dma/test_dma_linux_seq \
		  dma/test_dma_linux_par
30

31 32
SCRATCH_TESTS = scratch/test_scratch_seq \
		scratch/test_scratch_par
33

34
# unit tests
35
UNIT_TESTS = $(ARENA_JEMALLOC_TESTS) \
36
	     $(UTILS_TESTS) \
37 38
	     $(TILING_TESTS) \
	     $(BINDING_TESTS) \
39
	     $(AREA_LINUX_TESTS) \
40
	     $(AREA_POSIX_TESTS) \
41 42
	     $(DMA_LINUX_TESTS) \
	     $(SCRATCH_TESTS)
43

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