提交 c20af74a 编写于 作者: S Shengliang Guan

add tests for tfs

上级 a637882b
......@@ -6,4 +6,8 @@ target_include_directories(
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
)
target_link_libraries(tfs os util common)
\ No newline at end of file
target_link_libraries(tfs os util common)
if(${BUILD_TEST})
add_subdirectory(test)
endif(${BUILD_TEST})
\ No newline at end of file
enable_testing()
aux_source_directory(. TFS_TEST_SRC)
add_executable(tfs_test ${TFS_TEST_SRC})
target_link_libraries(
tfs_test
PUBLIC tfs
PUBLIC gtest_main
)
add_test(
NAME tfs_test
COMMAND tfs_test
)
/**
* @file tfsTest.cpp
* @author slguan (slguan@taosdata.com)
* @brief TFS module tests
* @version 1.0
* @date 2022-01-20
*
* @copyright Copyright (c) 2022
*
*/
#include <gtest/gtest.h>
#include "os.h"
class TfsTest : public ::testing::Test {
protected:
static void SetUpTestSuite() {}
static void TearDownTestSuite() {}
public:
void SetUp() override {}
void TearDown() override {}
};
TEST_F(TfsTest, 01_Open_Close) {
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册