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
32513056
Commit
32513056
authored
May 12, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pyxl hello world integration test
parent
12abc42b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
.gitmodules
.gitmodules
+3
-0
test/integration/pyxl
test/integration/pyxl
+1
-0
test/integration/pyxl_test.py
test/integration/pyxl_test.py
+39
-0
No files found.
.gitmodules
View file @
32513056
...
...
@@ -23,3 +23,6 @@
[submodule "test/integration/sqlalchemy"]
path = test/integration/sqlalchemy
url = https://github.com/zzzeek/sqlalchemy
[submodule "test/integration/pyxl"]
path = test/integration/pyxl
url = https://github.com/dropbox/pyxl.git
pyxl
@
ebe32acd
Subproject commit ebe32acd6f779069a6a9e03ca48c7eb5ffcd0831
test/integration/pyxl_test.py
0 → 100644
View file @
32513056
import
os
import
sys
import
subprocess
import
shutil
ENV_NAME
=
"pyxl_test_env_"
+
os
.
path
.
basename
(
sys
.
executable
)
if
not
os
.
path
.
exists
(
ENV_NAME
)
or
os
.
stat
(
sys
.
executable
).
st_mtime
>
os
.
stat
(
ENV_NAME
+
"/bin/python"
).
st_mtime
:
print
"Creating virtualenv to install testing dependencies..."
VIRTUALENV_SCRIPT
=
os
.
path
.
dirname
(
__file__
)
+
"/virtualenv/virtualenv.py"
try
:
args
=
[
sys
.
executable
,
VIRTUALENV_SCRIPT
,
"-p"
,
sys
.
executable
,
ENV_NAME
]
print
"Running"
,
args
subprocess
.
check_call
(
args
)
except
:
print
"Error occurred; trying to remove partially-created directory"
ei
=
sys
.
exc_info
()
try
:
subprocess
.
check_call
([
"rm"
,
"-rf"
,
ENV_NAME
])
except
Exception
as
e
:
print
e
raise
ei
[
0
],
ei
[
1
],
ei
[
2
]
PYXL_DIR
=
os
.
path
.
dirname
(
__file__
)
+
"/pyxl"
python_exe
=
os
.
path
.
abspath
(
ENV_NAME
+
"/bin/python"
)
subprocess
.
check_call
([
python_exe
,
"setup.py"
,
"build"
],
cwd
=
PYXL_DIR
)
subprocess
.
check_call
([
python_exe
,
"setup.py"
,
"install"
],
cwd
=
PYXL_DIR
)
subprocess
.
check_call
([
python_exe
,
"finish_install.py"
],
cwd
=
PYXL_DIR
)
out
=
subprocess
.
check_output
([
python_exe
,
"pyxl/examples/hello_world.py"
],
cwd
=
PYXL_DIR
)
print
print
"Output: '%s'"
%
out
assert
out
==
"<html><body>Hello World!</body></html>
\
n
"
print
"PASSED"
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