This is as I just used to bisect a P(1/256) bug.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
--- /dev/null
+
+# usage
+# ../parallel-bisect.sh
+
+DIRS := $(wildcard d.*)
+
+TARGETS := $(addsuffix /done, $(DIRS))
+
+all: $(TARGETS)
+
+%/done:
+ set -e; SECNET_TEST_BUILDDIR=$(PWD)/$* ./stest/t-nonnego-oo
--- /dev/null
+#!/bin/sh
+
+# usage
+# ../parallel-bisect.sh
+#
+# There should be subdirectories d.N for N=1..20
+# which are build trees of the current secnet.
+
+set -ex
+cd d.1
+make -j4 clean
+make -j4 stest/d-nonnego-oo/ok
+cd ..
+for f in d.*; do
+ ln d.1/secnet $f/secnet.new
+ rm $f/secnet
+ mv $f/secnet.new $f/secnet
+done
+for x in `seq 1 500`; do
+ echo $x
+ make -j -f ${0%/*}/parallel-test.make
+done
+echo ok