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

# add OpenMP to flags for test programs
AM_CFLAGS = -fopenmp -I$(top_srcdir)/src
5
AM_LDFLAGS = -fopenmp ../src/libaml.la ../jemalloc/lib/libjemalloc-aml.so
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 14 15 16 17 18 19 20
ARENA_JEMALLOC_TESTS = arena_jemalloc

AREA_LINUX_TESTS = linux_mbind \
		   linux_mmap \
		   linux_manager \
		   area_linux

AREA_POSIX_TESTS = area_posix

21 22 23 24
TILING_TESTS = tiling

BINDING_TESTS = binding

25 26
DMA_LINUX_TESTS = dma_linux_seq \
		  dma_linux_par
27

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

36 37 38 39 40
# fonctional tests
FUNC_TESTS = stream_add_pth stream_add_omp stream_vanilla

# all tests
TST_PROGS = $(UNIT_TESTS)
41 42
check_PROGRAMS = $(TST_PROGS)
TESTS = $(TST_PROGS)