]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
makefile: add a test-darcs-boringfile target
authorBrian Warner <warner@allmydata.com>
Thu, 24 May 2007 00:51:28 +0000 (17:51 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 24 May 2007 00:51:28 +0000 (17:51 -0700)
GNUmakefile
misc/test-darcs-boringfile.py [new file with mode: 0644]

index b3e3a42fcf8ec5a6189a65c0087cd976a5429428..8c442684183594a89256105289f97e0e99e49c60 100644 (file)
@@ -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 (file)
index 0000000..4c53c9f
--- /dev/null
@@ -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)
+
+