Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
93376a47
Commit
93376a47
authored
Aug 22, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More help to 'runner' script
parent
93eabad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
neo/scripts/runner.py
neo/scripts/runner.py
+26
-4
No files found.
neo/scripts/runner.py
View file @
93376a47
...
@@ -23,7 +23,7 @@ import sys
...
@@ -23,7 +23,7 @@ import sys
import
neo
import
neo
import
os
import
os
from
neo.tests
import
getTempDirectory
from
neo.tests
import
getTempDirectory
,
__dict__
as
neo_tests__dict__
from
neo.tests.benchmark
import
BenchmarkRunner
from
neo.tests.benchmark
import
BenchmarkRunner
# list of test modules
# list of test modules
...
@@ -258,9 +258,31 @@ class NeoTestRunner(unittest.TestResult):
...
@@ -258,9 +258,31 @@ class NeoTestRunner(unittest.TestResult):
class
TestRunner
(
BenchmarkRunner
):
class
TestRunner
(
BenchmarkRunner
):
def
add_options
(
self
,
parser
):
def
add_options
(
self
,
parser
):
parser
.
add_option
(
'-f'
,
'--functional'
,
action
=
'store_true'
)
parser
.
add_option
(
'-f'
,
'--functional'
,
action
=
'store_true'
,
parser
.
add_option
(
'-u'
,
'--unit'
,
action
=
'store_true'
)
help
=
'Functional tests'
)
parser
.
add_option
(
'-z'
,
'--zodb'
,
action
=
'store_true'
)
parser
.
add_option
(
'-u'
,
'--unit'
,
action
=
'store_true'
,
help
=
'Unit & threaded tests'
)
parser
.
add_option
(
'-z'
,
'--zodb'
,
action
=
'store_true'
,
help
=
'ZODB test suite running on a NEO'
)
parser
.
format_epilog
=
lambda
_
:
"""
Environment Variables:
NEO_TESTS_ADAPTER Default is SQLite for threaded clusters,
MySQL otherwise.
MySQL specific:
NEO_DB_PREFIX default: %(DB_PREFIX)s
NEO_DB_ADMIN default: %(DB_ADMIN)s
NEO_DB_PASSWD default: %(DB_PASSWD)s
NEO_DB_USER default: %(DB_USER)s
ZODB tests:
NEO_TEST_ZODB_FUNCTIONAL Clusters are threaded by default. If true,
they are built like in functional tests.
NEO_TEST_ZODB_MASTERS default: 1
NEO_TEST_ZODB_PARTITIONS default: 1
NEO_TEST_ZODB_REPLICAS default: 0
NEO_TEST_ZODB_STORAGES default: 1
"""
%
neo_tests__dict__
def
load_options
(
self
,
options
,
args
):
def
load_options
(
self
,
options
,
args
):
if
not
(
options
.
unit
or
options
.
functional
or
options
.
zodb
or
args
):
if
not
(
options
.
unit
or
options
.
functional
or
options
.
zodb
or
args
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment