Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-fast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-impl-fast
Commits
d10554dd
Commit
d10554dd
authored
Nov 02, 2016
by
John Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add libmu.so path to LD_LIBRARY_PATH so that the executable can find it
parent
a64ed9af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tests/test_jit/test_milestones.py
tests/test_jit/test_milestones.py
+3
-4
No files found.
tests/test_jit/test_milestones.py
View file @
d10554dd
...
...
@@ -14,9 +14,6 @@ bin_dir = test_jit_dir.join('temp')
if
not
bin_dir
.
exists
():
bin_dir
.
mkdir
()
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
(),
os
.
environ
[
'LD_LIBRARY_PATH'
])
# run
p
=
subp
.
Popen
([
str
(
bin_path
)],
stdout
=
subp
.
PIPE
,
stderr
=
subp
.
PIPE
,
cwd
=
str
(
bin_dir
),
env
=
os
.
environ
)
out
,
err
=
p
.
communicate
()
...
...
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