chiark / gitweb /
generate: Introduce od
[subdirmk.git] / tests / check
index 85d7637b3af61186800f7abd8e58210adfc0569a..1921877bb0ffc0798128ffb65a7c7bb4b8eae12c 100755 (executable)
@@ -1,15 +1,9 @@
-#!/bin/sh
+#!/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.'