chiark / gitweb /
README: Update copyright date
[subdirmk.git] / tests / check
index 3bd0f89aebd7bc3655687fef028e69ceb35a9bcb..2bb0d6801407df0768111e68deec6c72e0d86521 100755 (executable)
@@ -1,6 +1,15 @@
-#!/bin/sh
-set -ex
+#!/bin/bash
+# subdirmk - toplevel invocation script for the test suite
+#  Copyright 2019 Mark Wooding
+#  Copyright 2019 Ian Jackson
+# SPDX-License-Identifier: LGPL-2.0-or-later
+# There is NO WARRANTY.
 
-tests/filter/check
-tests/intree/check
-tests/example/check
+set -e
+
+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.'