projects
/
platform
/
upstream
/
automake.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa630a9
)
tests: fix a spurious failure with Solaris make
author
Stefano Lattarini
<stefano.lattarini@gmail.com>
Wed, 27 Jun 2012 13:07:03 +0000
(15:07 +0200)
committer
Stefano Lattarini
<stefano.lattarini@gmail.com>
Wed, 27 Jun 2012 13:07:03 +0000
(15:07 +0200)
* t/subdir-order.sh: Run make in parallel only if the make implementation
truly supports it.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/subdir-order.sh
patch
|
blob
|
history
diff --git
a/t/subdir-order.sh
b/t/subdir-order.sh
index 0321c25c60af60f98e2596c0018666c7b3f1c71e..4c843cfd91e917b1ec4c77b518129c31776dd933 100644
(file)
--- a/
t/subdir-order.sh
+++ b/
t/subdir-order.sh
@@
-124,6
+124,17
@@
all-local:
: > run
END
+echo dummy: > Makefile
+if using_gmake; then
+ jobs=-j12
+elif $MAKE -j12; then
+ jobs=-j12
+elif $MAKE -j 12; then
+ jobs="-j 12"
+else
+ jobs=none
+fi
+rm -f Makefile
$ACLOCAL
$AUTOCONF
@@
-131,7
+142,8
@@
$AUTOMAKE -c --add-missing
./configure
-for j in '' -j12; do
+for j in '' "$jobs"; do
+ test x"$j" = x"none" && continue
$MAKE $j
test -f run
test -f sub0/run