Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
0a61896d
Commit
0a61896d
authored
Mar 30, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #418 from tjhance/tester-improvement
add option to tester script to skip specified tests
parents
8f8467da
2ee99ac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tools/tester.py
tools/tester.py
+8
-0
No files found.
tools/tester.py
View file @
0a61896d
...
@@ -126,6 +126,10 @@ def canonicalize_stderr(stderr):
...
@@ -126,6 +126,10 @@ def canonicalize_stderr(stderr):
failed
=
[]
failed
=
[]
def
run_test
(
fn
,
check_stats
,
run_memcheck
):
def
run_test
(
fn
,
check_stats
,
run_memcheck
):
r
=
os
.
path
.
basename
(
fn
).
rjust
(
FN_JUST_SIZE
)
r
=
os
.
path
.
basename
(
fn
).
rjust
(
FN_JUST_SIZE
)
test_base_name
=
os
.
path
.
basename
(
fn
).
split
(
'.'
)[
0
]
if
test_base_name
in
TESTS_TO_SKIP
:
return
r
+
" (skipped due to command line option)"
statchecks
=
[]
statchecks
=
[]
jit_args
=
[
"-rq"
]
+
EXTRA_JIT_ARGS
jit_args
=
[
"-rq"
]
+
EXTRA_JIT_ARGS
...
@@ -386,6 +390,8 @@ parser.add_argument('-a', '--extra-args', default=[], action='append',
...
@@ -386,6 +390,8 @@ parser.add_argument('-a', '--extra-args', default=[], action='append',
help="additional arguments to pyston (must be invoked with equal sign: -a=-ARG)")
help="additional arguments to pyston (must be invoked with equal sign: -a=-ARG)")
parser.add_argument('-t', '--time-limit', type=int, default=TIME_LIMIT,
parser.add_argument('-t', '--time-limit', type=int, default=TIME_LIMIT,
help='set time limit in seconds for each test')
help='set time limit in seconds for each test')
parser.add_argument('-s', '--skip-tests', type=str, default='',
help='tests to skip (comma-separated)')
parser.add_argument('test_dir')
parser.add_argument('test_dir')
parser.add_argument('patterns', nargs='*')
parser.add_argument('patterns', nargs='*')
...
@@ -397,6 +403,7 @@ def main(orig_dir):
...
@@ -397,6 +403,7 @@ def main(orig_dir):
global TIME_LIMIT
global TIME_LIMIT
global TEST_DIR
global TEST_DIR
global FN_JUST_SIZE
global FN_JUST_SIZE
global TESTS_TO_SKIP
run_memcheck = False
run_memcheck = False
start = 1
start = 1
...
@@ -408,6 +415,7 @@ def main(orig_dir):
...
@@ -408,6 +415,7 @@ def main(orig_dir):
KEEP_GOING = opts.keep_going
KEEP_GOING = opts.keep_going
EXTRA_JIT_ARGS += opts.extra_args
EXTRA_JIT_ARGS += opts.extra_args
TIME_LIMIT = opts.time_limit
TIME_LIMIT = opts.time_limit
TESTS_TO_SKIP = opts.skip_tests.split(',')
TEST_DIR = os.path.join(orig_dir, opts.test_dir)
TEST_DIR = os.path.join(orig_dir, opts.test_dir)
patterns = opts.patterns
patterns = opts.patterns
...
...
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