add VMATest
This commit is contained in:
parent
0eb6d29210
commit
34f7051eec
|
@ -15,4 +15,9 @@ target_link_libraries(
|
|||
PUBLIC meta
|
||||
PUBLIC tq
|
||||
PUBLIC tsdb
|
||||
)
|
||||
)
|
||||
|
||||
# test
|
||||
if(${BUILD_TEST})
|
||||
add_subdirectory(test)
|
||||
endif(${BUILD_TEST})
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# 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)
|
|
@ -0,0 +1,8 @@
|
|||
#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;
|
||||
}
|
Loading…
Reference in New Issue