Commit a2a93924 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add switch to disable eager linking of test programs.

* Pass --with-on-demand-check-programs to configure to only build
  test programs when make check is invoked.
parent 38c371bd
......@@ -836,6 +836,20 @@ AS_CASE(["$enable_low_mem"],
[*], [AC_MSG_ERROR([Unrecognized option passed to --enable-low-mem])])
dnl
dnl
dnl add flag to disable automatic creation of test programs
AC_ARG_WITH([on-demand-check-programs],
[AS_HELP_STRING([--with-on-demand-check-programs],
[only build test programs when calling make check (default: build during make all)])],
[AS_CASE([$withval],
[yes|no],,
[n],[with_on_demand_check_programs=no],
[y],[with_on_demand_check_programs=yes],
[AC_MSG_FAILURE([unexpected value for --with-on-demand-check-programs: $withval])])],
[with_on_demand_check_programs=no])
AM_CONDITIONAL([with_on_demand_check_programs],
[test x$with_on_demand_check_programs = xyes])
AR="${AR:-ar}"
ARFLAGS="${ARFLAGS:-cru}"
AC_SUBST([AR])
......
......@@ -36,7 +36,7 @@ AM_FCFLAGS = $(FPP_INCOPT)$(top_srcdir)/include/f90 \
AM_CPPFLAGS = -I$(top_srcdir)/include $(MPI_C_INCLUDE)
noinst_PROGRAMS = test_qsort \
check_PROGRAMS = test_qsort \
test_insertion_sort \
test_bsearch \
test_uniform_partition_c \
......@@ -69,16 +69,20 @@ if HAVE_POINTER_REMAP
AM_FCFLAGS += $(FPP_DEFOPT)HAVE_POINTER_REMAP
endif
noinst_PROGRAMS+= test_strided_extents test_set_repartition_mp \
check_PROGRAMS+= test_strided_extents test_set_repartition_mp \
test_ddp_math_mp \
test_graph_dist_mp
if ENABLE_DISTRIBUTED_ARRAY_C
noinst_PROGRAMS += \
check_PROGRAMS += \
test_distributed_array_c_mp \
test_distributed_array_mp
endif
endif
if ! with_on_demand_check_programs
all: $(check_PROGRAMS)
endif
LDADD = ../src/libtestdata.la ../src/libscalesppm.la
test_m1d_SOURCES = test_m1d.f90
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment