From: Brian Warner <warner@allmydata.com>
Date: Thu, 24 May 2007 00:51:28 +0000 (-0700)
Subject: makefile: add a test-darcs-boringfile target
X-Git-Tag: allmydata-tahoe-0.3.0~58
X-Git-Url: https://git.rkrishnan.org/%5B/frontends/-?a=commitdiff_plain;h=319516a5a212cdf376f82dae806b5f0c94530dce;p=tahoe-lafs%2Ftahoe-lafs.git

makefile: add a test-darcs-boringfile target
---

diff --git a/GNUmakefile b/GNUmakefile
index b3e3a42f..8c442684 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -176,6 +176,11 @@ count-lines:
 check-memory:
 	$(PP) $(PYTHON) src/allmydata/test/check_memory.py
 
+test-darcs-boringfile:
+	make
+	$(PYTHON) misc/test-darcs-boringfile.py
+
+
 clean: clean-zfec clean-Crypto clean-foolscap
 	rm -rf build
 	rm -f debian
diff --git a/misc/test-darcs-boringfile.py b/misc/test-darcs-boringfile.py
new file mode 100644
index 00000000..4c53c9f9
--- /dev/null
+++ b/misc/test-darcs-boringfile.py
@@ -0,0 +1,14 @@
+#! /usr/bin/python
+
+import sys
+from subprocess import Popen, PIPE
+
+cmd = ["darcs", "whatsnew", "-l"]
+p = Popen(cmd, stdout=PIPE)
+output = p.communicate()[0]
+print output
+if output == "No changes!\n":
+    sys.exit(0)
+sys.exit(1)
+
+