da23029c96
built. The issue is that these tests are trying to test specific components, and is calling the functions directly -- and therefore needs to have the component linked in. This is fine when the component is statically linked as part of libmpi, but presents a problem when the component is a DSO. GNU compilers/linkers allow us to link in the DSO as part of the test executable (and everything "just works"), but this is not portable. A better solution is going to involve: - a better unit test support library that can load a DSO on demand - using function pointers in the unit tests (rather than direct function invocation) This commit was SVN r5051.
71 строка
2.1 KiB
Makefile
71 строка
2.1 KiB
Makefile
# -*- makefile -*-
|
|
#
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
# All rights reserved.
|
|
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
# All rights reserved.
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
# All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
|
AM_CPPFLAGS = -I$(top_srcdir)/test/support -DOMPI_ENABLE_DEBUG_OVERRIDE=1 -g
|
|
|
|
TESTS_ENVIRONMENT = TEST_WRITE_TO_FILE=1
|
|
|
|
check_PROGRAMS = \
|
|
gpr_internal_fns \
|
|
gpr_mem_leaks \
|
|
gpr_overwrite \
|
|
gpr_put_get \
|
|
gpr_triggers
|
|
|
|
TESTS = \
|
|
$(check_PROGRAMS)
|
|
|
|
if OMPI_BUILD_gpr_replica_DSO
|
|
replica = $(top_builddir)/src/mca/gpr/replica/mca_gpr_replica.la
|
|
else
|
|
replica = $(top_builddir)/src/mca/gpr/replica/libmca_gpr_replica.la
|
|
endif
|
|
|
|
gpr_internal_fns_SOURCES = gpr_internal_fns.c
|
|
gpr_internal_fns_LDADD = \
|
|
$(top_builddir)/src/libmpi.la \
|
|
$(replica) \
|
|
$(top_builddir)/test/support/libsupport.a
|
|
gpr_internal_fns_DEPENDENCIES = $(gpr_internal_fns_LDADD)
|
|
|
|
gpr_mem_leaks_SOURCES = gpr_mem_leaks.c
|
|
gpr_mem_leaks_LDADD = \
|
|
$(top_builddir)/src/libmpi.la \
|
|
$(top_builddir)/test/support/libsupport.a
|
|
gpr_mem_leaks_DEPENDENCIES = $(gpr_mem_leaks_LDADD)
|
|
|
|
gpr_overwrite_SOURCES = gpr_overwrite.c
|
|
gpr_overwrite_LDADD = \
|
|
$(top_builddir)/src/libmpi.la \
|
|
$(top_builddir)/test/support/libsupport.a
|
|
gpr_overwrite_DEPENDENCIES = $(gpr_overwrite_LDADD)
|
|
|
|
gpr_put_get_SOURCES = gpr_put_get.c
|
|
gpr_put_get_LDADD = \
|
|
$(top_builddir)/src/libmpi.la \
|
|
$(replica) \
|
|
$(top_builddir)/test/support/libsupport.a
|
|
gpr_put_get_DEPENDENCIES = $(gpr_put_get_LDADD)
|
|
|
|
gpr_triggers_SOURCES = gpr_triggers.c
|
|
gpr_triggers_LDADD = \
|
|
$(top_builddir)/src/libmpi.la \
|
|
$(replica) \
|
|
$(top_builddir)/test/support/libsupport.a
|
|
gpr_triggers_DEPENDENCIES = $(gpr_triggers_LDADD)
|