Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
830efa3e
Commit
830efa3e
authored
Jun 08, 2018
by
Paul
Browse files
Find gdb
parent
97ea1a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test/CMakeLists.txt
test/CMakeLists.txt
+8
-2
No files found.
test/CMakeLists.txt
View file @
830efa3e
...
...
@@ -7,7 +7,13 @@ find_package(Threads REQUIRED)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
--output-on-failure -C
${
CMAKE_CFG_INTDIR
}
)
add_custom_target
(
tests
)
set
(
RTG_TEST_GDB On CACHE BOOL
""
)
find_program
(
RTG_GDB gdb
)
if
(
RTG_GDB
)
set
(
RTG_TEST_GDB On CACHE BOOL
""
)
else
()
set
(
RTG_TEST_GDB Off CACHE BOOL
""
)
endif
()
set
(
SKIP_TESTS
)
...
...
@@ -26,7 +32,7 @@ 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
gdb
--batch --return-child-result -ex r -ex bt --args $<TARGET_FILE:
${
EXE
}
>
${
ARGN
}
)
add_test
(
NAME
${
NAME
}
COMMAND
${
RTG_GDB
}
--batch --return-child-result -ex r -ex bt --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