You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by ti...@apache.org on 2022/06/27 02:16:06 UTC

[incubator-kvrocks] branch unstable updated: chore: move cpp unit tests files to a dedicated folder (#679)

This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 5c4b412  chore: move cpp unit tests files to a dedicated folder (#679)
5c4b412 is described below

commit 5c4b4120150ae53e915f5d830c4e77e13944fa84
Author: tison <wa...@gmail.com>
AuthorDate: Mon Jun 27 10:16:00 2022 +0800

    chore: move cpp unit tests files to a dedicated folder (#679)
    
    Signed-off-by: tison <wa...@gmail.com>
---
 CMakeLists.txt                            | 2 +-
 tests/{ => cppunit}/cluster_test.cc       | 0
 tests/{ => cppunit}/compact_test.cc       | 0
 tests/{ => cppunit}/config_test.cc        | 0
 tests/{ => cppunit}/cron_test.cc          | 0
 tests/{ => cppunit}/log_collector_test.cc | 0
 tests/{ => cppunit}/main.cc               | 0
 tests/{ => cppunit}/rwlock_test.cc        | 0
 tests/{ => cppunit}/string_reply_test.cc  | 0
 tests/{ => cppunit}/string_util_test.cc   | 0
 tests/{ => cppunit}/t_bitmap_test.cc      | 0
 tests/{ => cppunit}/t_encoding_test.cc    | 0
 tests/{ => cppunit}/t_geo_test.cc         | 0
 tests/{ => cppunit}/t_hash_test.cc        | 0
 tests/{ => cppunit}/t_list_test.cc        | 0
 tests/{ => cppunit}/t_metadata_test.cc    | 0
 tests/{ => cppunit}/t_set_test.cc         | 0
 tests/{ => cppunit}/t_sortedint_test.cc   | 0
 tests/{ => cppunit}/t_string_test.cc      | 0
 tests/{ => cppunit}/t_zset_test.cc        | 0
 tests/{ => cppunit}/task_runner_test.cc   | 0
 tests/{ => cppunit}/test_base.h           | 0
 22 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03fa765..eeab2bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,7 +136,7 @@ add_executable(kvrocks2redis ${KVROCKS2REDIS_SRCS})
 target_link_libraries(kvrocks2redis PRIVATE kvrocks_objs ${EXTERNAL_LIBS})
 
 # kvrocks unit tests
-file(GLOB TESTS_SRCS tests/*.cc)
+file(GLOB TESTS_SRCS tests/cppunit/*.cc)
 add_executable(unittest ${TESTS_SRCS})
 
 target_link_libraries(unittest PRIVATE kvrocks_objs gtest_main ${EXTERNAL_LIBS})
diff --git a/tests/cluster_test.cc b/tests/cppunit/cluster_test.cc
similarity index 100%
rename from tests/cluster_test.cc
rename to tests/cppunit/cluster_test.cc
diff --git a/tests/compact_test.cc b/tests/cppunit/compact_test.cc
similarity index 100%
rename from tests/compact_test.cc
rename to tests/cppunit/compact_test.cc
diff --git a/tests/config_test.cc b/tests/cppunit/config_test.cc
similarity index 100%
rename from tests/config_test.cc
rename to tests/cppunit/config_test.cc
diff --git a/tests/cron_test.cc b/tests/cppunit/cron_test.cc
similarity index 100%
rename from tests/cron_test.cc
rename to tests/cppunit/cron_test.cc
diff --git a/tests/log_collector_test.cc b/tests/cppunit/log_collector_test.cc
similarity index 100%
rename from tests/log_collector_test.cc
rename to tests/cppunit/log_collector_test.cc
diff --git a/tests/main.cc b/tests/cppunit/main.cc
similarity index 100%
rename from tests/main.cc
rename to tests/cppunit/main.cc
diff --git a/tests/rwlock_test.cc b/tests/cppunit/rwlock_test.cc
similarity index 100%
rename from tests/rwlock_test.cc
rename to tests/cppunit/rwlock_test.cc
diff --git a/tests/string_reply_test.cc b/tests/cppunit/string_reply_test.cc
similarity index 100%
rename from tests/string_reply_test.cc
rename to tests/cppunit/string_reply_test.cc
diff --git a/tests/string_util_test.cc b/tests/cppunit/string_util_test.cc
similarity index 100%
rename from tests/string_util_test.cc
rename to tests/cppunit/string_util_test.cc
diff --git a/tests/t_bitmap_test.cc b/tests/cppunit/t_bitmap_test.cc
similarity index 100%
rename from tests/t_bitmap_test.cc
rename to tests/cppunit/t_bitmap_test.cc
diff --git a/tests/t_encoding_test.cc b/tests/cppunit/t_encoding_test.cc
similarity index 100%
rename from tests/t_encoding_test.cc
rename to tests/cppunit/t_encoding_test.cc
diff --git a/tests/t_geo_test.cc b/tests/cppunit/t_geo_test.cc
similarity index 100%
rename from tests/t_geo_test.cc
rename to tests/cppunit/t_geo_test.cc
diff --git a/tests/t_hash_test.cc b/tests/cppunit/t_hash_test.cc
similarity index 100%
rename from tests/t_hash_test.cc
rename to tests/cppunit/t_hash_test.cc
diff --git a/tests/t_list_test.cc b/tests/cppunit/t_list_test.cc
similarity index 100%
rename from tests/t_list_test.cc
rename to tests/cppunit/t_list_test.cc
diff --git a/tests/t_metadata_test.cc b/tests/cppunit/t_metadata_test.cc
similarity index 100%
rename from tests/t_metadata_test.cc
rename to tests/cppunit/t_metadata_test.cc
diff --git a/tests/t_set_test.cc b/tests/cppunit/t_set_test.cc
similarity index 100%
rename from tests/t_set_test.cc
rename to tests/cppunit/t_set_test.cc
diff --git a/tests/t_sortedint_test.cc b/tests/cppunit/t_sortedint_test.cc
similarity index 100%
rename from tests/t_sortedint_test.cc
rename to tests/cppunit/t_sortedint_test.cc
diff --git a/tests/t_string_test.cc b/tests/cppunit/t_string_test.cc
similarity index 100%
rename from tests/t_string_test.cc
rename to tests/cppunit/t_string_test.cc
diff --git a/tests/t_zset_test.cc b/tests/cppunit/t_zset_test.cc
similarity index 100%
rename from tests/t_zset_test.cc
rename to tests/cppunit/t_zset_test.cc
diff --git a/tests/task_runner_test.cc b/tests/cppunit/task_runner_test.cc
similarity index 100%
rename from tests/task_runner_test.cc
rename to tests/cppunit/task_runner_test.cc
diff --git a/tests/test_base.h b/tests/cppunit/test_base.h
similarity index 100%
rename from tests/test_base.h
rename to tests/cppunit/test_base.h