From ab9366215590a2ce5139525e9558bc3ee877df81 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Mon, 3 Jan 2022 17:54:54 +0800 Subject: [PATCH] Move the location of the test cases --- source/dnode/mgmt/impl/test/CMakeLists.txt | 2 -- source/dnode/mnode/impl/CMakeLists.txt | 6 +++++- source/dnode/mnode/impl/test/CMakeLists.txt | 4 ++++ source/dnode/{mgmt => mnode}/impl/test/acct/CMakeLists.txt | 0 source/dnode/{mgmt => mnode}/impl/test/acct/acct.cpp | 0 source/dnode/mnode/impl/test/mnodeTests.cpp | 0 source/dnode/{mgmt => mnode}/impl/test/user/CMakeLists.txt | 0 source/dnode/{mgmt => mnode}/impl/test/user/user.cpp | 0 8 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 source/dnode/mnode/impl/test/CMakeLists.txt rename source/dnode/{mgmt => mnode}/impl/test/acct/CMakeLists.txt (100%) rename source/dnode/{mgmt => mnode}/impl/test/acct/acct.cpp (100%) delete mode 100644 source/dnode/mnode/impl/test/mnodeTests.cpp rename source/dnode/{mgmt => mnode}/impl/test/user/CMakeLists.txt (100%) rename source/dnode/{mgmt => mnode}/impl/test/user/user.cpp (100%) diff --git a/source/dnode/mgmt/impl/test/CMakeLists.txt b/source/dnode/mgmt/impl/test/CMakeLists.txt index b0596bed08..b36cdbd690 100644 --- a/source/dnode/mgmt/impl/test/CMakeLists.txt +++ b/source/dnode/mgmt/impl/test/CMakeLists.txt @@ -1,6 +1,5 @@ enable_testing() -add_subdirectory(acct) # add_subdirectory(auth) # add_subdirectory(balance) add_subdirectory(cluster) @@ -17,7 +16,6 @@ add_subdirectory(stb) # add_subdirectory(sync) # add_subdirectory(telem) # add_subdirectory(trans) -add_subdirectory(user) add_subdirectory(vgroup) add_subdirectory(sut) diff --git a/source/dnode/mnode/impl/CMakeLists.txt b/source/dnode/mnode/impl/CMakeLists.txt index 6768651922..adbef3b55f 100644 --- a/source/dnode/mnode/impl/CMakeLists.txt +++ b/source/dnode/mnode/impl/CMakeLists.txt @@ -12,4 +12,8 @@ target_link_libraries( PRIVATE transport PRIVATE cjson PRIVATE sync -) \ No newline at end of file +) + +if(${BUILD_TEST}) + add_subdirectory(test) +endif(${BUILD_TEST}) \ No newline at end of file diff --git a/source/dnode/mnode/impl/test/CMakeLists.txt b/source/dnode/mnode/impl/test/CMakeLists.txt new file mode 100644 index 0000000000..fa7b45f988 --- /dev/null +++ b/source/dnode/mnode/impl/test/CMakeLists.txt @@ -0,0 +1,4 @@ +enable_testing() + +add_subdirectory(acct) +add_subdirectory(user) diff --git a/source/dnode/mgmt/impl/test/acct/CMakeLists.txt b/source/dnode/mnode/impl/test/acct/CMakeLists.txt similarity index 100% rename from source/dnode/mgmt/impl/test/acct/CMakeLists.txt rename to source/dnode/mnode/impl/test/acct/CMakeLists.txt diff --git a/source/dnode/mgmt/impl/test/acct/acct.cpp b/source/dnode/mnode/impl/test/acct/acct.cpp similarity index 100% rename from source/dnode/mgmt/impl/test/acct/acct.cpp rename to source/dnode/mnode/impl/test/acct/acct.cpp diff --git a/source/dnode/mnode/impl/test/mnodeTests.cpp b/source/dnode/mnode/impl/test/mnodeTests.cpp deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/source/dnode/mgmt/impl/test/user/CMakeLists.txt b/source/dnode/mnode/impl/test/user/CMakeLists.txt similarity index 100% rename from source/dnode/mgmt/impl/test/user/CMakeLists.txt rename to source/dnode/mnode/impl/test/user/CMakeLists.txt diff --git a/source/dnode/mgmt/impl/test/user/user.cpp b/source/dnode/mnode/impl/test/user/user.cpp similarity index 100% rename from source/dnode/mgmt/impl/test/user/user.cpp rename to source/dnode/mnode/impl/test/user/user.cpp -- GitLab