chiark
/
gitweb
/
~ian
/
subdirmk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generate: Make many dir vars globals
[subdirmk.git]
/
tests
/
check
diff --git
a/tests/check
b/tests/check
index afae155b4f1e81f371eceb8bf9424840897ef76e..1921877bb0ffc0798128ffb65a7c7bb4b8eae12c 100755
(executable)
--- a/
tests/check
+++ b/
tests/check
@@
-1,15
+1,9
@@
-#!/bin/sh
-set -e
x
+#!/bin/
ba
sh
+set -e
-cd example
-git clean -xdff
-./autogen.sh && ./configure
-make -j4 all check
-make -j4 clean
-make -j4 all check
+j=$(nproc 2>/dev/null || echo 1)
+j=$(( $j * 5 / 4 + 1 ))
-git clean -xdff
-mkdir build
-cd build
-.././autogen.sh && ../configure
-make -j4 all check
+x () { echo "$@"; "$@"; }
+x ${MAKE-make} -f tests/tests.mk -j$j
+echo 'ok.'