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
88070844
Commit
88070844
authored
May 20, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1189 from kmod/extra_tests
Reenable the 'extra' tests
parents
a7653f03
cfae3194
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
CMakeLists.txt
CMakeLists.txt
+1
-2
src/jit.cpp
src/jit.cpp
+1
-1
test/extra/cffi_test.py
test/extra/cffi_test.py
+3
-2
test/extra/sass_test.py
test/extra/sass_test.py
+1
-1
test/tests/no_pyc_check.py
test/tests/no_pyc_check.py
+6
-0
No files found.
CMakeLists.txt
View file @
88070844
...
...
@@ -350,8 +350,7 @@ endif()
add_pyston_test
(
defaults cpython --exit-code-only --skip-failing -t100
)
add_pyston_test
(
defaults integration --exit-code-only --skip-failing -t600
)
if
(
ENABLE_EXTRA_TESTS
)
# XXX: reenable
# add_pyston_test(defaults extra -t900 --exit-code-only)
add_pyston_test
(
defaults extra -t900 --exit-code-only
)
endif
()
...
...
src/jit.cpp
View file @
88070844
...
...
@@ -509,7 +509,7 @@ static int main(int argc, char** argv) noexcept {
free
(
real_path
);
try
{
AST_Module
*
ast
=
caching_
parse_file
(
fn
,
/* future_flags = */
0
);
AST_Module
*
ast
=
parse_file
(
fn
,
/* future_flags = */
0
);
compileAndRunModule
(
ast
,
main_module
);
rtncode
=
0
;
}
catch
(
ExcInfo
e
)
{
...
...
test/extra/cffi_test.py
View file @
88070844
# Note: the expected counts here are set to match the CI, and I can't re[rpduce them locally
import
os
,
sys
,
subprocess
,
shutil
sys
.
path
.
append
(
os
.
path
.
dirname
(
__file__
)
+
"/../lib"
)
...
...
@@ -24,9 +25,9 @@ def install_and_test_cffi():
# looks like clang 3.5 causes more errors like: 214 != -42 doing casts
if
os
.
environ
.
has_key
(
"CC"
)
and
"clang"
in
os
.
environ
[
"CC"
]:
expected
=
[{
"failed"
:
58
,
"passed"
:
1619
,
"skipped"
:
70
,
"xfailed"
:
4
,
"error"
:
5
}]
expected
=
[{
"failed"
:
34
,
"passed"
:
1643
,
"skipped"
:
70
,
"xfailed"
:
4
,
"error"
:
5
}]
else
:
expected
=
[{
"failed"
:
49
,
"passed"
:
1628
,
"skipped"
:
70
,
"xfailed"
:
4
,
"error"
:
5
}]
expected
=
[{
"failed"
:
25
,
"passed"
:
1652
,
"skipped"
:
70
,
"xfailed"
:
4
,
"error"
:
5
}]
run_test
([
PYTEST_EXE
],
cwd
=
CFFI_DIR
,
expected
=
expected
)
create_virtenv
(
ENV_NAME
,
[
"pytest==2.8.7"
,
"py==1.4.31"
,
"pycparser==2.14"
],
force_create
=
True
)
...
...
test/extra/sass_test.py
View file @
88070844
# skip-if: 'clang' in os.environ
['CC']
# skip-if: 'clang' in os.environ
.get('CC', '')
# looks like libsass only builds using gcc...
import
os
,
sys
,
subprocess
sys
.
path
.
append
(
os
.
path
.
dirname
(
__file__
)
+
"/../lib"
)
...
...
test/tests/no_pyc_check.py
0 → 100644
View file @
88070844
import
os.path
try
:
assert
not
os
.
path
.
exists
(
__file__
+
'c'
)
except
AssertionError
:
os
.
unlink
(
__file__
+
'c'
)
raise
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