root/NXLucene/trunk/test.py

Revision 48506, 1.3 kB (checked in by janguenot, 2 years ago)

rollback python directory changes. The ongoing work will be done in a branch for now.

  • Property svn:executable set to *
Line 
1 #!/usr/bin/env python2.4
2 # Copyright (C) 2006, Nuxeo SAS <http://www.nuxeo.com>
3 # Author: Julien Anguenot <ja@nuxeo.com>
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9 #
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-13
18 """Test runner for WebLucene.
19
20 See the docs for zope.testing; test.py is a small driver for
21 zope.testing.testrunner.
22 """
23
24 import sys
25
26 path = "src"
27 print "Running tests from", path
28
29 # Insert the WebLucene src dir first in the sys.path to avoid a name conflict
30 # with zope.whatever librairies that might be installed on the Python
31 # version used to launch these tests.
32 sys.path.insert(0, path)
33
34 from zope.testing import testrunner
35
36 defaults = [
37     "--path", path,
38     ]
39
40 testrunner.run(defaults)
Note: See TracBrowser for help on using the browser.