chiark / gitweb /
parallel bisect scripts: ad-hoc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Dec 2019 02:07:02 +0000 (02:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:54 +0000 (21:56 +0000)
This is as I just used to bisect a P(1/256) bug.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
parallel-test.make [new file with mode: 0644]
parallel-test.sh [new file with mode: 0755]

diff --git a/parallel-test.make b/parallel-test.make
new file mode 100644 (file)
index 0000000..17c190a
--- /dev/null
@@ -0,0 +1,12 @@
+
+# usage
+#  ../parallel-bisect.sh
+
+DIRS := $(wildcard d.*)
+
+TARGETS := $(addsuffix /done, $(DIRS))
+
+all: $(TARGETS)
+
+%/done:
+       set -e; SECNET_TEST_BUILDDIR=$(PWD)/$* ./stest/t-nonnego-oo
diff --git a/parallel-test.sh b/parallel-test.sh
new file mode 100755 (executable)
index 0000000..4967f96
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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