Makefile.am 746 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
# unit tests
22 23 24
UNIT_TESTS = $(ARENA_JEMALLOC_TESTS) \
	     $(AREA_LINUX_TESTS) \
	     $(AREA_POSIX_TESTS)
25

26 27 28 29 30
# fonctional tests
FUNC_TESTS = stream_add_pth stream_add_omp stream_vanilla

# all tests
TST_PROGS = $(UNIT_TESTS)
31 32
check_PROGRAMS = $(TST_PROGS)
TESTS = $(TST_PROGS)