Rev 8: Cleanup and test suite creation. in http://code.launchpad.net/%7Ev-ladeuil/bzr/grep

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Jan 11 16:25:41 GMT 2008


At http://code.launchpad.net/%7Ev-ladeuil/bzr/grep

------------------------------------------------------------
revno: 8
revision-id:v.ladeuil+lp at free.fr-20080111162538-ie97n1n60nk1bmy7
parent: v.ladeuil+lp at free.fr-20080109114507-tv4b269tf2v2rad4
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: grep
timestamp: Fri 2008-01-11 17:25:38 +0100
message:
  Cleanup and test suite creation.
  
  * test_grep.py: 
  Single fake passing test.
  
  * __init__.py: 
  Add copyright. Add test_suite.
  
  * README: 
  Created.
  
  * CONTRIBUTORS: 
  Created.
added:
  CONTRIBUTORS                   contributors-20080111162340-en5g4ei40816158i-1
  README                         readme-20080111162343-qc0ulu0puc670xz5-1
  test_grep.py                   test_grep.py-20080111162345-dtinprpim0xk8s6e-1
modified:
  __init__.py                    __init__.py-20060323100923-17d68e8a2f14f018
-------------- next part --------------
=== added file 'CONTRIBUTORS'
--- a/CONTRIBUTORS	1970-01-01 00:00:00 +0000
+++ b/CONTRIBUTORS	2008-01-11 16:25:38 +0000
@@ -0,0 +1,2 @@
+Michael Ellerman Original author
+Vincent Ladeuil  Maintainer since December 2007.

=== added file 'README'
--- a/README	1970-01-01 00:00:00 +0000
+++ b/README	2008-01-11 16:25:38 +0000
@@ -0,0 +1,6 @@
+Bernhard Voelker said:
+ 
+ Note for Win32 users:
+ 
+   the grep plugin also works on Win32 if xargs and grep from
+   unxutils.sf.net are in %PATH%.

=== modified file '__init__.py'
--- a/__init__.py	2008-01-09 11:45:07 +0000
+++ b/__init__.py	2008-01-11 16:25:38 +0000
@@ -1,4 +1,19 @@
-#!/usr/bin/python
+# Copyright (C) 2007 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Grep through your working tree, but only files managed by bzr."""
 
 import subprocess
@@ -83,3 +98,16 @@
 
 
 commands.register_command(cmd_grep)
+
+def test_suite():
+    from bzrlib.tests import TestUtil
+
+    suite = TestUtil.TestSuite()
+    loader = TestUtil.TestLoader()
+    testmod_names = [
+        'test_grep',
+        ]
+
+    suite.addTest(loader.loadTestsFromModuleNames(
+            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
+    return suite

=== added file 'test_grep.py'
--- a/test_grep.py	1970-01-01 00:00:00 +0000
+++ b/test_grep.py	2008-01-11 16:25:38 +0000
@@ -0,0 +1,23 @@
+# Copyright (C) 2007 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+from bzrlib import tests
+
+
+class TestGrep(tests.TestCase):
+
+    def test_fake(self):
+        pass



More information about the bazaar-commits mailing list