From 3ee97489ea49b339c4a7578afd85f85f77dd0f68 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Aug 2012 07:00:18 +0200 Subject: [PATCH] allow separate setting of parallelism for subseq. tests Change-Id: I5a5444e8ee95b0fd95a97c31c94ab0f9c3935abb --- Makefile.top | 2 +- config_host.mk.in | 1 + configure.in | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile.top b/Makefile.top index 643bcbbf5930..a387e538c22a 100644 --- a/Makefile.top +++ b/Makefile.top @@ -271,7 +271,7 @@ $(1).clean: cd $(1) && $(GNUMAKE) -j $(GMAKE_PARALLELISM) $(GMAKE_OPTIONS) clean gb_PARTIALBUILD=T $(1).subsequentcheck: - cd $(1) && $(GNUMAKE) -j $(GMAKE_PARALLELISM) $(GMAKE_OPTIONS) subsequentcheck gb_PARTIALBUILD=T + cd $(1) && $(GNUMAKE) -j $(CHECK_PARALLELISM) $(GMAKE_OPTIONS) subsequentcheck gb_PARTIALBUILD=T $(1).deliver: @true diff --git a/config_host.mk.in b/config_host.mk.in index 6da79d144ed3..a2404f762b28 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -46,6 +46,7 @@ export CC=@CC@ export CC_FOR_BUILD=@CC_FOR_BUILD@ export CDR_CFLAGS=@CDR_CFLAGS@ export CDR_LIBS=@CDR_LIBS@ +export CHECK_PARALLELISM=@CHECK_PARALLELISM@ export CLASSPATH=@CLASSPATH@ export CL_X64=@CL_X64@ export CLUCENE_CFLAGS=@CLUCENE_CFLAGS@ diff --git a/configure.in b/configure.in index db2850415d09..51c1ff22292e 100644 --- a/configure.in +++ b/configure.in @@ -2068,6 +2068,12 @@ AC_ARG_WITH(max-jobs, Defaults to 1, unless you configure --enable-icecream - then to 10.]), ,) +AC_ARG_WITH(check-jobs, + AS_HELP_STRING([--with-check-jobs], + [Maximum number of jobs that will be issued at the same time during 'make subsequenttest'. + Default value is the same as 'max-jobs'. Useful because the subsequent tests are very lighweight.]), +,) + dnl =================================================================== dnl MacOSX build and runtime environment options dnl =================================================================== @@ -12165,6 +12171,17 @@ AC_MSG_RESULT([per module:$GMAKE_MODULE_PARALLELISM, for tail_build:$GMAKE_PARAL AC_SUBST(GMAKE_PARALLELISM) AC_SUBST(GMAKE_MODULE_PARALLELISM) +dnl =================================================================== +dnl Number of parallel jobs to be executed during subsequenttest +dnl =================================================================== +AC_MSG_CHECKING([for maximum no. of jobs during subsequenttest]) +CHECK_PARALLELISM=$GMAKE_PARALLELISM +if test "$with_check_jobs" != ""; then + CHECK_PARALLELISM="$with_check_jobs" +fi +AC_MSG_RESULT([$CHECK_PARALLELISM]) +AC_SUBST(CHECK_PARALLELISM) + dnl =================================================================== dnl Setting up the environment. dnl ===================================================================