Introduce GoogleTest framework. (#204)

* Use googletest for tests. Add conv2d_fwd UT.

* Add conv1D/3D to gtest UT.

* Fix: not duplicate test with CTest.

* Convert more tests to googltests.

* Fix: GIT_SHALLOW is not allowed for git commit hash.

* Clang-format

* use integer value for GEMM test

Co-authored-by: Adam Osewski <aosewski@amd.com>
Co-authored-by: Chao Liu <chao.liu2@amd.com>
Co-authored-by: Chao Liu <lc.roy86@gmail.com>
This commit is contained in:
Adam Osewski
2022-04-30 15:50:16 +02:00
committed by GitHub
parent 8a2c69eeee
commit 8eca05a633
11 changed files with 378 additions and 404 deletions

View File

@@ -1,2 +1,2 @@
add_test_executable(test_reference_conv_fwd reference_conv_fwd.cpp)
add_gtest_executable(test_reference_conv_fwd reference_conv_fwd.cpp)
target_link_libraries(test_reference_conv_fwd PRIVATE host_tensor conv_fwd_util)