add tests for tfs
This commit is contained in:
parent
a637882bae
commit
c20af74a69
|
@ -6,4 +6,8 @@ target_include_directories(
|
|||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
|
||||
)
|
||||
|
||||
target_link_libraries(tfs os util common)
|
||||
target_link_libraries(tfs os util common)
|
||||
|
||||
if(${BUILD_TEST})
|
||||
add_subdirectory(test)
|
||||
endif(${BUILD_TEST})
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
)
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* @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) {
|
||||
|
||||
}
|
Loading…
Reference in New Issue