From d887782418467653c335ec26aa17d6928cbfa44f Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 6 Jan 2012 16:48:47 -0800 Subject: [PATCH] add test-git-ignore.py, to port the 'clean' buildbot test to git add .gitignore to match .darcs-boringfile, mostly --- .gitignore | 22 ++++++++++++++++++++++ Makefile | 4 ++++ misc/build_helpers/test-git-ignore.py | 14 ++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 misc/build_helpers/test-git-ignore.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..958ddd4a --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +*.pyc +*.pyo + +/build/ +/support/ + +# these are generated at build time, and never checked in +/src/allmydata/_version.py +/src/allmydata/_appname.py + +# these are generated too +/bin/tahoe +/bin/tahoe.pyscript +/bin/tahoe-script.py + +/.built +/src/allmydata_tahoe.egg-info/ +Twisted-*.egg + +/_trial_temp* +/dist/ +/twisted/plugins/dropin.cache diff --git a/Makefile b/Makefile index d14634f0..9b4225db 100644 --- a/Makefile +++ b/Makefile @@ -209,6 +209,10 @@ test-darcs-boringfile: $(MAKE) $(PYTHON) misc/build_helpers/test-darcs-boringfile.py +test-git-ignore: + $(MAKE) + $(PYTHON) misc/build_helpers/test-git-ignore.py + test-clean: find . |grep -vEe "_darcs|allfiles.tmp|src/allmydata/_(version|appname).py" |sort >allfiles.tmp.old $(MAKE) diff --git a/misc/build_helpers/test-git-ignore.py b/misc/build_helpers/test-git-ignore.py new file mode 100644 index 00000000..832f775d --- /dev/null +++ b/misc/build_helpers/test-git-ignore.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import sys +from subprocess import Popen, PIPE + +cmd = ["git", "status", "--porcelain"] +p = Popen(cmd, stdout=PIPE) +output = p.communicate()[0] +print output +if output == "": + sys.exit(0) +sys.exit(1) + + -- 2.45.2