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

# add OpenMP to flags for test programs
4
AM_CFLAGS = -I$(top_srcdir)/src
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 = vector

14 15
ARENA_JEMALLOC_TESTS = arena_jemalloc

Swann Perarnau's avatar
Swann Perarnau committed
16
AREA_LINUX_TESTS = \
17 18 19 20 21 22
		   linux_mmap \
		   linux_manager \
		   area_linux

AREA_POSIX_TESTS = area_posix

23 24
TILING_TESTS = tiling \
	       tiling_2d
25 26 27

BINDING_TESTS = binding

28 29
DMA_LINUX_TESTS = dma_linux_seq \
		  dma_linux_par
30

31 32
SCRATCH_TESTS = scratch_seq \
		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)