chiark / gitweb /
Legal: Add copyright, licence and warranty notice to many files
[subdirmk.git] / tests / check
1 #!/bin/bash
2 # subdirmk - toplevel invocation script for the test suite
3 #  Copyright 2019 Mark Wooding
4 #  Copyright 2019 Ian Jackson
5 # SPDX-License-Identifier: LGPL-2.0-or-later
6 # There is NO WARRANTY.
7
8 set -e
9
10 j=$(nproc 2>/dev/null || echo 1)
11 j=$(( $j * 5 / 4 + 1 ))
12
13 x () { echo "$@"; "$@"; }
14 x ${MAKE-make} -f tests/tests.mk -j$j
15 echo 'ok.'