Makefile.am 1.04 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 13
UTILS_TESTS = utils/test_vector \
	      utils/test_bitmap
14

15
ARENA_JEMALLOC_TESTS = arena/test_jemalloc
16

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

22
AREA_POSIX_TESTS = area/test_posix
23

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

27
BINDING_TESTS = binding/test_binding
28

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

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

35
# unit tests
36
UNIT_TESTS = $(ARENA_JEMALLOC_TESTS) \
37
	     $(UTILS_TESTS) \
38 39
	     $(TILING_TESTS) \
	     $(BINDING_TESTS) \
40
	     $(AREA_LINUX_TESTS) \
41
	     $(AREA_POSIX_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)