makefile: add a test-darcs-boringfile target

This commit is contained in:
Brian Warner 2007-05-23 17:51:28 -07:00
parent 2d21029367
commit 319516a5a2
2 changed files with 19 additions and 0 deletions

View 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

View File

@ -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)