]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
add test-git-ignore.py, to port the 'clean' buildbot test to git
authorBrian Warner <warner@lothar.com>
Sat, 7 Jan 2012 00:48:47 +0000 (16:48 -0800)
committerBrian Warner <warner@lothar.com>
Sun, 8 Jan 2012 22:12:32 +0000 (14:12 -0800)
add .gitignore to match .darcs-boringfile, mostly

.gitignore [new file with mode: 0644]
Makefile
misc/build_helpers/test-git-ignore.py [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..958ddd4
--- /dev/null
@@ -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
index d14634f03e8c4179831c3b0d6bfb5db328353ec9..9b4225db475a988901a01b91867dbffa11110580 100644 (file)
--- 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 (file)
index 0000000..832f775
--- /dev/null
@@ -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)
+
+