xmpedit

GTK+ editor for XMP metadata embedded in images
git clone https://code.djc.id.au/git/xmpedit/
commit 1a61e2c49e69a7b49c64515a2978e4cfb42a3dca
parent 406e2aff7e05d3e91cb6d5771e1396903793ffd1
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sun, 19 Sep 2010 19:39:05 +1000

build script: make tests optional

Diffstat:
Mbuild | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/build b/build
@@ -153,5 +153,11 @@ def test():
     invoke(['test/guitest.py'])
 
 if __name__ == '__main__':
+    from optparse import OptionParser
+    parser = OptionParser(usage='usage: %prog [options]')
+    parser.add_option('-t', '--test', action='store_true', default=False,
+            help='build and run tests')
+    options, args = parser.parse_args()
     compile()
-    test()
+    if options.test:
+        test()