Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f3a8e523
Commit
f3a8e523
authored
Jun 08, 2018
by
Paul
Browse files
Add ptrace to docker run
parent
c1de01f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Jenkinsfile
Jenkinsfile
+1
-1
test/CMakeLists.txt
test/CMakeLists.txt
+7
-1
No files found.
Jenkinsfile
View file @
f3a8e523
...
...
@@ -25,7 +25,7 @@ def rocmtestnode(variant, name, body) {
}
}
withDockerContainer
(
image:
image
,
args:
'--device=/dev/kfd --device=/dev/dri --group-add video'
)
{
withDockerContainer
(
image:
image
,
args:
'--device=/dev/kfd --device=/dev/dri --group-add video
--cap-add SYS_PTRACE
'
)
{
timeout
(
time:
1
,
unit:
'HOURS'
)
{
body
(
cmake_build
)
}
...
...
test/CMakeLists.txt
View file @
f3a8e523
...
...
@@ -32,7 +32,13 @@ function(add_test_command NAME EXE)
add_test
(
NAME
${
NAME
}
COMMAND
${
WINE_CMD
}
cmd /c
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_
${
NAME
}
.cmd"
$<TARGET_FILE:
${
EXE
}
>
)
else
()
if
(
RTG_TEST_GDB
)
add_test
(
NAME
${
NAME
}
COMMAND
${
RTG_GDB
}
--batch --return-child-result -ex
"set disable-randomization off"
-ex r -ex bt --args $<TARGET_FILE:
${
EXE
}
>
${
ARGN
}
)
add_test
(
NAME
${
NAME
}
COMMAND
${
RTG_GDB
}
--batch
--return-child-result
-ex
"set disable-randomization off"
-ex run
-ex backtrace
--args $<TARGET_FILE:
${
EXE
}
>
${
ARGN
}
)
else
()
add_test
(
NAME
${
NAME
}
COMMAND
${
EXE
}
${
ARGN
}
)
endif
()
...
...
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