Makefile.am 977 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 29
SCRATCH_TESTS = scratch_seq

30
# unit tests
31
UNIT_TESTS = $(ARENA_JEMALLOC_TESTS) \
32 33
	     $(TILING_TESTS) \
	     $(BINDING_TESTS) \
34
	     $(AREA_LINUX_TESTS) \
35
	     $(AREA_POSIX_TESTS) \
36 37
	     $(DMA_LINUX_TESTS) \
	     $(SCRATCH_TESTS)
38

39 40 41 42 43
# fonctional tests
FUNC_TESTS = stream_add_pth stream_add_omp stream_vanilla

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