Makefile.am 1.04 KB
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
UTILS_TESTS = vector

14 15 16 17 18 19 20 21 22
ARENA_JEMALLOC_TESTS = arena_jemalloc

AREA_LINUX_TESTS = linux_mbind \
		   linux_mmap \
		   linux_manager \
		   area_linux

AREA_POSIX_TESTS = area_posix

23 24 25 26
TILING_TESTS = tiling

BINDING_TESTS = binding

27 28
DMA_LINUX_TESTS = dma_linux_seq \
		  dma_linux_par
29

30 31
SCRATCH_TESTS = scratch_seq \
		scratch_par
32

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

43
# fonctional tests
44
FUNC_TESTS = stream_add_pth_st stream_add_omp_st stream_add_omp_mt
45 46

# all tests
47
TST_PROGS = $(UNIT_TESTS) $(FUNC_TESTS)
48 49
check_PROGRAMS = $(TST_PROGS)
TESTS = $(TST_PROGS)