Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mu
mu-impl-fast
Commits
0ddfce69
Commit
0ddfce69
authored
Feb 10, 2017
by
John Zhang
Browse files
removed environment variable, must specify it on command line when running pytest
parent
7a1a071a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_jit/test_rpython.py
View file @
0ddfce69
...
...
@@ -1009,11 +1009,9 @@ def test_make_boot_image_simple():
exe
=
py
.
path
.
local
(
'/tmp/test_make_boot_image_mu.mu'
)
# zebu
import
os
from
rpython.translator.mu
import
dir_mu
""" NOTE: must specify (DY)LD_LIBRARY_PATH to point to directory of rpyc"""
exe
.
chmod
(
stat
.
S_IRWXU
)
res
=
platform
.
execute
(
str
(
exe
),
[
'abc'
,
'123'
],
env
=
{
'DYLD_LIBRARY_PATH'
:
os
.
path
.
join
(
dir_mu
,
'rpyc'
)})
res
=
platform
.
execute
(
str
(
exe
),
[
'abc'
,
'123'
])
# holstein
# res = platform.execute('/Users/johnz/Documents/Work/mu-impl-ref2/tools/runmu.sh',
# ['--vmLog=ERROR', str(exe), 'abc', '123'])
...
...
@@ -1035,11 +1033,9 @@ def test_rpytarget_print_argv():
exe
=
py
.
path
.
local
(
'/tmp/test_printargv_mu.mu'
)
# zebu
import
os
from
rpython.translator.mu
import
dir_mu
""" NOTE: must specify (DY)LD_LIBRARY_PATH to point to directory of rpyc"""
exe
.
chmod
(
stat
.
S_IRWXU
)
res
=
platform
.
execute
(
str
(
exe
),
[
'abc'
,
'123'
],
env
=
{
'DYLD_LIBRARY_PATH'
:
os
.
path
.
join
(
dir_mu
,
'rpyc'
)})
res
=
platform
.
execute
(
str
(
exe
),
[
'abc'
,
'123'
])
# holstein
# res = platform.execute('/Users/johnz/Documents/Work/mu-impl-ref2/tools/runmu.sh',
# ['--vmLog=ERROR', str(exe), 'abc', '123'])
...
...
@@ -1052,8 +1048,8 @@ def test_rpython_helloworld():
from
rpython.translator.interactive
import
Translation
def
main
(
argv
):
print
"hello world"
return
0
print
"hello world"
return
0
t
=
Translation
(
main
,
None
,
backend
=
'mu'
,
muimpl
=
'fast'
,
mucodegen
=
'api'
)
t
.
driver
.
exe_name
=
'/tmp/test_helloworld'
...
...
@@ -1061,10 +1057,9 @@ def test_rpython_helloworld():
exe
=
py
.
path
.
local
(
'/tmp/test_helloworld.mu'
)
# zebu
import
os
from
rpython.translator.mu
import
dir_mu
""" NOTE: must specify (DY)LD_LIBRARY_PATH to point to directory of rpyc"""
exe
.
chmod
(
stat
.
S_IRWXU
)
res
=
platform
.
execute
(
str
(
exe
),
[]
,
env
=
{
'DYLD_LIBRARY_PATH'
:
os
.
path
.
join
(
dir_mu
,
'rpyc'
)}
)
res
=
platform
.
execute
(
str
(
exe
),
[])
assert
res
.
returncode
==
0
,
res
.
err
assert
res
.
out
==
'hello world
\n
'
...
...
@@ -1093,11 +1088,9 @@ The light shines in the darkness, and the darkness has not overcome it.
fp
.
write
(
john1
)
# zebu
import
os
from
rpython.translator.mu
import
dir_mu
""" NOTE: must specify (DY)LD_LIBRARY_PATH to point to directory of rpyc"""
exe
.
chmod
(
stat
.
S_IRWXU
)
res
=
platform
.
execute
(
str
(
exe
),
[
str
(
test_file
)],
env
=
{
'DYLD_LIBRARY_PATH'
:
os
.
path
.
join
(
dir_mu
,
'rpyc'
)})
res
=
platform
.
execute
(
str
(
exe
),
[
str
(
test_file
)])
# holstein
# res = platform.execute('/Users/johnz/Documents/Work/mu-impl-ref2/tools/runmu.sh',
# ['--vmLog=ERROR', str(exe), str(test_file)])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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