summaryrefslogtreecommitdiff
path: root/t/parallel-tests-concurrency.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2014-12-27 13:52:55 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2014-12-27 15:33:04 +0100
commitc3da5a74ffef3cb177270b021c34bd4cd2bb80f5 (patch)
tree42c89cf9ab9142d8d8dd7e5afcb941bb4653a8d3 /t/parallel-tests-concurrency.sh
parent6979c8e680b68dbc2b27b4db808cb037ba6aabb7 (diff)
downloadautomake-c3da5a74ffef3cb177270b021c34bd4cd2bb80f5.tar.gz
tests: avoid some spurious failures on AIX 7.1
* t/lex-noyywrap.sh: Here. * t/instmany-mans.sh: And here. * t/instmany-python.sh: And here. * t/instmany.sh: And here. * t/parallel-tests-concurrency.sh: And here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/parallel-tests-concurrency.sh')
-rw-r--r--t/parallel-tests-concurrency.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/t/parallel-tests-concurrency.sh b/t/parallel-tests-concurrency.sh
index 7fbd20eeb..4a70e23f6 100644
--- a/t/parallel-tests-concurrency.sh
+++ b/t/parallel-tests-concurrency.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2009-2013 Free Software Foundation, Inc.
+# Copyright (C) 2009-2014 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -17,8 +17,8 @@
# Check parallel-tests features:
# - concurrent parallel execution
-# FIXME: we should factorize the code to determine how to run
-# make in parallel out in am-test-lib.sh ...
+# FIXME: we should factor out (into am-test-lib.sh?) the code to determine
+# how to run make in parallel mode ...
. test-init.sh
@@ -89,11 +89,16 @@ for build in serial parallel; do
done
cd serial
-$MAKE ${j}1 check &
-cd ../parallel
+# Do *not* use "make -j1" here; apparently, some make implementations
+# (e.g., AIX 7.1) interpret it as a synonym of "make -j" :-(
+$MAKE check &
+cd ..
+
+cd parallel
$sleep
run_make -O -- ${j}4 check
cd ..
+
# Ensure the tests are really being run in parallel mode: if this is
# the case, the serial run of the dummy testsuite started above should
# still be ongoing when the parallel one has terminated.