about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-16 19:18:10 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-16 19:56:38 -0700
commitb589f25a005ad00f6fd888520f9eaaddbd707617 (patch)
treef90024e9263755813ab99534ffd5eb9e731a81d7 /cpp
parent3a24d35f7582591e274d0de6fd002b7491c82696 (diff)
downloadmu-b589f25a005ad00f6fd888520f9eaaddbd707617.tar.gz
931
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