about summary refs log tree commit diff stats
path: root/linux/bootstrap/test_layers
diff options
context:
space:
mode:
Diffstat (limited to 'linux/bootstrap/test_layers')
-rwxr-xr-xlinux/bootstrap/test_layers18
1 files changed, 18 insertions, 0 deletions
diff --git a/linux/bootstrap/test_layers b/linux/bootstrap/test_layers
new file mode 100755
index 00000000..eda1150c
--- /dev/null
+++ b/linux/bootstrap/test_layers
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Repeatedly stop building until successive layers, and run all tests built.
+#
+# Assumes .subx files all come after .cc files.
+
+set -e
+
+cd `dirname $0`
+# add C++ files one at a time
+for f in [0-9]*cc
+do
+  echo "=== bootstrap $f"
+  ./build_and_test_until $f
+done
+
+# build everything one last time
+./clean
+./build  # build optimized since we'll be running it repeatedly below