chiark / gitweb /
changelog: start 0.6.8
[secnet.git] / parallel-test.sh
index 4967f969c9ea427865e6874060b80949ae4931cb..81fd0e51ae36b7579c327e36c77e0416f57143c9 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+# This file is part of secnet.
+# See LICENCE and this file CREDITS for full list of copyright holders.
+# SPDX-License-Identifier: GPL-3.0-or-later
+# There is NO WARRANTY.
+
 # usage
 #  ../parallel-bisect.sh
 #
@@ -16,8 +21,14 @@ for f in d.*; do
     rm $f/secnet
     mv $f/secnet.new $f/secnet
 done
-for x in `seq 1 500`; do
+here=$(git rev-parse HEAD)
+us=${0%/*}
+log=$us/at-$here.log
+>$log
+for x in `seq 1 ${1-500}`; do
     echo $x
-    make -j -f ${0%/*}/parallel-test.make
+    echo >>$log $x
+    make -j -f $us/parallel-test.make >$us/dump/at-$here.log 2>&1
+    echo >>$log "$x ok"
 done
 echo ok