chiark / gitweb /
Warning reporting: Warning suppression system
[subdirmk.git] / tests / check
index afae155b4f1e81f371eceb8bf9424840897ef76e..1921877bb0ffc0798128ffb65a7c7bb4b8eae12c 100755 (executable)
@@ -1,15 +1,9 @@
-#!/bin/sh
-set -ex
+#!/bin/bash
+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.'