Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DecafPlus
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tianqi Yang
DecafPlus
Commits
fb0b5550
Commit
fb0b5550
authored
Jan 11, 2019
by
Tianqi Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(global): add runAll.py to run all specified test suites
Add runAll.py to run all specified test suites
parent
9763cd5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
runAll.py
unittest/runAll.py
+21
-0
No files found.
unittest/runAll.py
0 → 100644
View file @
fb0b5550
#!/usr/bin/env python3
import
os
import
subprocess
import
sys
if
__name__
==
'__main__'
:
names
=
sys
.
argv
[
1
:]
if
len
(
names
)
==
0
:
names
=
sorted
(
os
.
listdir
(
'.'
))
for
name
in
names
:
if
os
.
path
.
isdir
(
name
)
and
os
.
path
.
exists
(
os
.
path
.
join
(
name
,
'runAll.py'
)):
print
(
'Running test suite {}:'
.
format
(
name
))
subprocess
.
call
(
[
os
.
path
.
abspath
(
os
.
path
.
join
(
name
,
'runAll.py'
))],
stdin
=
sys
.
stdin
,
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
,
cwd
=
name
)
\ No newline at end of file
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