Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (48 sloc) 1.768 kb
9937e6b John Goerzen Removed python2.2 in bang paths
jgoerzen authored
1 #!/usr/bin/python
c2e4b32 /pygopherd/head: changeset 127
jgoerzen authored
2 # Python-based gopher server
3 # Module: main test runner
4 # COPYRIGHT #
5 # Copyright (C) 2002 John Goerzen
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
6c4854e /pygopherd/head: changeset 213
jgoerzen authored
9 # the Free Software Foundation; version 2 of the License.
c2e4b32 /pygopherd/head: changeset 127
jgoerzen authored
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # END OF COPYRIGHT #
20
0d0d158 /pygopherd/head: changeset 227
jgoerzen authored
21 import sys, profile
c2e4b32 /pygopherd/head: changeset 127
jgoerzen authored
22 # sys.path.insert("-1", "..")
23
24 import unittest
25 from pygopherd import *
f708452 /pygopherd/head: changeset 156
jgoerzen authored
26 import pygopherd.protocols
27 import pygopherd.protocols.ProtocolMultiplexerTest
886bf95 /pygopherd/head: changeset 158
jgoerzen authored
28 import pygopherd.protocols.baseTest
8d094d3 /pygopherd/head: changeset 160
jgoerzen authored
29 import pygopherd.protocols.rfc1436Test
886bf95 /pygopherd/head: changeset 158
jgoerzen authored
30 import pygopherd.protocols
5f5ca2d /pygopherd/head: changeset 214
jgoerzen authored
31 import pygopherd.handlers.ZIP
c2e4b32 /pygopherd/head: changeset 127
jgoerzen authored
32
33 def suite():
bed2ecf /pygopherd/head: changeset 132
jgoerzen authored
34 tests = [initializationTest,
e4dbb3b /pygopherd/head: changeset 134
jgoerzen authored
35 GopherExceptionsTest,
fb0df0f /pygopherd/head: changeset 136
jgoerzen authored
36 fileextTest,
85e9d4b /pygopherd/head: changeset 140
jgoerzen authored
37 gopherentryTest,
5880e05 /pygopherd/head: changeset 155
jgoerzen authored
38 loggerTest,
f708452 /pygopherd/head: changeset 156
jgoerzen authored
39 pipeTest,
886bf95 /pygopherd/head: changeset 158
jgoerzen authored
40 pygopherd.protocols.ProtocolMultiplexerTest,
8d094d3 /pygopherd/head: changeset 160
jgoerzen authored
41 pygopherd.protocols.baseTest,
5f5ca2d /pygopherd/head: changeset 214
jgoerzen authored
42 pygopherd.protocols.rfc1436Test,
43 pygopherd.handlers.ZIP
c2e4b32 /pygopherd/head: changeset 127
jgoerzen authored
44 ]
45 suite = unittest.TestSuite()
46 for module in tests:
47 suite.addTest(unittest.findTestCases(module))
48 return suite
49
50 if __name__ == '__main__':
0d0d158 /pygopherd/head: changeset 227
jgoerzen authored
51 profile.run("unittest.main(defaultTest='suite')", 'profile.out')
6e356bb /pygopherd/head: changeset 235
jgoerzen authored
52 # unittest.main(defaultTest='suite')
c2e4b32 /pygopherd/head: changeset 127
jgoerzen authored
53
Something went wrong with that request. Please try again.