From 319516a5a212cdf376f82dae806b5f0c94530dce Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 23 May 2007 17:51:28 -0700 Subject: [PATCH] makefile: add a test-darcs-boringfile target --- GNUmakefile | 5 +++++ misc/test-darcs-boringfile.py | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 misc/test-darcs-boringfile.py 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) + + -- 2.45.2