about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/build_and_test_until4
-rwxr-xr-xcpp/test_all9
2 files changed, 13 insertions, 0 deletions
diff --git a/cpp/build_and_test_until b/cpp/build_and_test_until
index 3661c93a..4e5beb8c 100755
--- a/cpp/build_and_test_until
+++ b/cpp/build_and_test_until
@@ -1,3 +1,7 @@
+#!/bin/sh
+# Load all files sorting before the given argument.
+# You can pass in a prefix, but files matching the prefix *won't* be included.
+
 set -e
 set -v
 make tangle/tangle
diff --git a/cpp/test_all b/cpp/test_all
new file mode 100755
index 00000000..a171031e
--- /dev/null
+++ b/cpp/test_all
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+for l in `seq 10 99`
+do
+  echo "=== $l"
+  ./build_and_test_until 0$l
+  # stop after the first index without a file
+  if [ ! -f 0$l* ]; then break; fi
+done