chiark / gitweb /
Warning reporting: Report each warning only once
[subdirmk.git] / tests / check
index de20e4bbbd45db85819d42b64c4e5e940070d9e2..1921877bb0ffc0798128ffb65a7c7bb4b8eae12c 100755 (executable)
@@ -1,5 +1,9 @@
-#!/bin/sh
+#!/bin/bash
 set -e
 
-${MAKE-make} -f tests/tests.mk -j8
+j=$(nproc 2>/dev/null || echo 1)
+j=$(( $j * 5 / 4 + 1 ))
+
+x () { echo "$@"; "$@"; }
+x ${MAKE-make} -f tests/tests.mk -j$j
 echo 'ok.'