WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 0ddfce69 authored by John Zhang's avatar John Zhang
Browse files

removed environment variable, must specify it on command line when running pytest

parent 7a1a071a
......@@ -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)])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment