[test] use cmake to run unit tests (#8724)

This commit migrates unit tests to cmake.
* build unit tests with cmake
* add missing tests in cmake
* use ctest
* add platform udp stubs for test platform
* skip some static_assert with gcc-4
This commit is contained in:
Yakun Xu
2023-02-09 10:19:01 -08:00
committed by GitHub
parent 6e6a2ae145
commit 0e667b8e03
19 changed files with 273 additions and 472 deletions
+1
View File
@@ -39,6 +39,7 @@ main()
{
local builddir
local options=(
"-DBUILD_TESTING=OFF"
"-DCMAKE_BUILD_TYPE=Release"
"-DOT_COVERAGE=OFF"
"-DOT_LOG_LEVEL=INFO"