find-trailing-spaces:
$(PYTHON) misc/find-trailing-spaces.py -r src
+# The test-desert-island target grabs the tahoe-deps tarball, unpacks it,
+# does a build, then asserts that the build did not try to download anything
+# as it ran. Invoke this on a new tree, or after a 'clean', to make sure the
+# support/lib/ directory is gone.
+
+test-desert-island:
+ wget http://allmydata.org/source/tahoe/tarballs/tahoe-deps.tar.gz
+ tar xf tahoe-deps.tar.gz
+ $(MAKE) 2>&1 | tee make.out
+ $(PYTHON) misc/check-build.py make.out no-downloads
+
+
# TARBALL GENERATION
.PHONY: tarballs upload-tarballs
tarballs:
--- /dev/null
+#! /usr/bin/env python
+
+# This helper script is used with the 'test-desert-island' Makefile target.
+
+import sys
+
+good = True
+build_out = sys.argv[1]
+mode = sys.argv[2]
+
+for line in open(build_out, "r"):
+ if mode == "no-downloads" and "downloading" in line.lower():
+ print line,
+ good = False
+if good:
+ if mode == "no-downloads":
+ print "Good: build did not try to download any files"
+ sys.exit(0)
+else:
+ if mode == "no-downloads":
+ print "Failed: build tried to download files"
+ sys.exit(1)