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.

Commit d10554dd authored by John Zhang's avatar John Zhang
Browse files

add libmu.so path to LD_LIBRARY_PATH so that the executable can find it

parent a64ed9af
......@@ -14,9 +14,6 @@ bin_dir = test_jit_dir.join('temp')
if not bin_dir.exists():
print 'proj_dir =', proj_dir
print 'bin_dir =', bin_dir
def compile_lib(testname):
src_c = testsuite_dir.join(testname + '.c')
bin_path = bin_dir.join(testname)
......@@ -35,7 +32,9 @@ def compile_lib(testname):
sys.stdout.write(out + '\n')
sys.stderr.write(err + '\n')
raise subp.CalledProcessError(p.returncode, cmd)
os.environ['LD_LIBRARY_PATH'] = "%s:%s" % ("%(proj_dir)s/target/debug" % globals(),
# run
p = subp.Popen([str(bin_path)], stdout=subp.PIPE, stderr=subp.PIPE, cwd=str(bin_dir), env=os.environ)
out, err = p.communicate()
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