"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "f880138497a195ee735a9d5ba50ce2cab54c9959"
Unverified Commit 79aa3fb1 authored by Anthony Chang's avatar Anthony Chang Committed by GitHub
Browse files

Disable gtest discovery to run tests per-program not per-case (#432)

* disable gtest discovery to run tests per-program not per-case

* register cmake target to ctest
parent d4d1147f
......@@ -26,7 +26,7 @@ function(add_gtest_executable TEST_NAME)
# suppress gtest warnings
target_compile_options(${TEST_NAME} PRIVATE -Wno-global-constructors -Wno-undef)
target_link_libraries(${TEST_NAME} PRIVATE gtest_main)
gtest_discover_tests(${TEST_NAME})
add_test(NAME ${TEST_NAME} COMMAND $<TARGET_FILE:${TEST_NAME}> )
rocm_install(TARGETS ${TEST_NAME} COMPONENT tests)
endfunction(add_gtest_executable TEST_NAME)
......
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