提交 34f7051e 编写于 作者: H Hongze Cheng

add VMATest

上级 0eb6d292
......@@ -15,4 +15,9 @@ target_link_libraries(
PUBLIC meta
PUBLIC tq
PUBLIC tsdb
)
\ No newline at end of file
)
# test
if(${BUILD_TEST})
add_subdirectory(test)
endif(${BUILD_TEST})
# vnodeMemAllocatorTest
add_executable(VMATest "")
target_sources(VMATest
PRIVATE
"../src/vnodeMemAllocator.c"
"vnodeMemAllocatorTest.cpp"
)
target_include_directories(VMATest PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../inc")
target_link_libraries(VMATest os gtest_main)
\ No newline at end of file
#include <gtest/gtest.h>
#include <iostream>
#include "vnodeMemAllocator.h"
TEST(VMATest, basic_create_and_destroy_test) {
std::cout << "Hello, this is VMA test" << std::endl;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册