apply gtest_filter for build time test
authorYoungjae Shin <yj99.shin@samsung.com>
Tue, 12 Oct 2021 05:43:26 +0000 (14:43 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Thu, 28 Oct 2021 10:38:57 +0000 (19:38 +0900)
Change-Id: If5eb937af2f02dd412bfef293777f43a82ef647c

15 files changed:
subprojects/libbeyond-authenticator_ssl/test/CMakeLists.txt
subprojects/libbeyond-authenticator_ssl/test/ut_authenticator.cc
subprojects/libbeyond-discovery_dns_sd/test/CMakeLists.txt
subprojects/libbeyond-discovery_dns_sd/test/ut_discovery_dns_sd.cc
subprojects/libbeyond-peer_nn/test/CMakeLists.txt
subprojects/libbeyond-peer_nn/test/unittest_peer.cc
subprojects/libbeyond-tizen-capi/ut/CMakeLists.txt
subprojects/libbeyond-tizen-capi/ut/unittest_authenticator.cc
subprojects/libbeyond-tizen-capi/ut/unittest_authenticator_async.cc
subprojects/libbeyond-tizen-capi/ut/unittest_discovery.cc
subprojects/libbeyond-tizen-capi/ut/unittest_peer.cc
subprojects/libbeyond/test/CMakeLists.txt
subprojects/libbeyond/test/unittest_authenticator.cc
subprojects/libbeyond/test/unittest_discovery.cc
subprojects/libbeyond/test/unittest_event_loop.cc

index 130c14627d0c1c6689474cb9cfede03829e7caaf..28c4aaaed277f70ec273998579fe43555388e9c5 100644 (file)
@@ -15,7 +15,7 @@ ADD_TEST(
     COMMAND
         ${CMAKE_COMMAND} -E env
         LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond:${CMAKE_CURRENT_BINARY_DIR}/../:$ENV{LD_LIBRARY_PATH}
-        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
+        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} --gtest_filter=*_Anytime
 )
 
 SET_TESTS_PROPERTIES(${PROJECT_NAME} PROPERTIES TIMEOUT ${TEST_TIMEOUT})
index bdf2ba091286c47b610bdaa2e7fb4ed82264d89e..f53902e5c486c56d5b2222790bc2ec13f1b8593d 100644 (file)
@@ -260,7 +260,7 @@ protected:
     beyond::ModuleInterface::EntryPoint entry;
 };
 
-TEST_F(AuthenticatorTest, PositiveCreateAsync)
+TEST_F(AuthenticatorTest, PositiveCreateAsync_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -276,7 +276,7 @@ TEST_F(AuthenticatorTest, PositiveCreateAsync)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveCreate)
+TEST_F(AuthenticatorTest, PositiveCreate_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -291,7 +291,7 @@ TEST_F(AuthenticatorTest, PositiveCreate)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveConfigure)
+TEST_F(AuthenticatorTest, PositiveConfigure_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -313,7 +313,7 @@ TEST_F(AuthenticatorTest, PositiveConfigure)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveActivateAsync)
+TEST_F(AuthenticatorTest, PositiveActivateAsync_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -342,7 +342,7 @@ TEST_F(AuthenticatorTest, PositiveActivateAsync)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveActivate)
+TEST_F(AuthenticatorTest, PositiveActivate_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -370,7 +370,7 @@ TEST_F(AuthenticatorTest, PositiveActivate)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveConfigure_GenerateCert)
+TEST_F(AuthenticatorTest, PositiveConfigure_GenerateCert_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -392,7 +392,7 @@ TEST_F(AuthenticatorTest, PositiveConfigure_GenerateCert)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveActivate_GenerateCert)
+TEST_F(AuthenticatorTest, PositiveActivate_GenerateCert_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -420,7 +420,7 @@ TEST_F(AuthenticatorTest, PositiveActivate_GenerateCert)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveGetSecretKey)
+TEST_F(AuthenticatorTest, PositiveGetSecretKey_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
@@ -464,7 +464,7 @@ TEST_F(AuthenticatorTest, PositiveGetSecretKey)
     authenticator->Destroy();
 }
 
-TEST_F(AuthenticatorTest, PositiveActivate_NoConfigure)
+TEST_F(AuthenticatorTest, PositiveActivate_NoConfigure_Anytime)
 {
     char *argv[] = {
         const_cast<char *>(::Authenticator::NAME),
index 7b76e66c7df083f352668512cae4293bbae4c3f1..df26cbe1f57cba834af1871fc2061b3e53ae0e1c 100644 (file)
@@ -13,7 +13,7 @@ ADD_TEST(
     COMMAND
         ${CMAKE_COMMAND} -E env
         LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond:${CMAKE_CURRENT_BINARY_DIR}/../:$ENV{LD_LIBRARY_PATH}
-        ${CMAKE_CURRENT_BINARY_DIR}/${DNS_SD_TEST}
+        ${CMAKE_CURRENT_BINARY_DIR}/${DNS_SD_TEST} --gtest_filter=-*_Runtime
 )
 
 SET_TESTS_PROPERTIES(${DNS_SD_TEST} PROPERTIES TIMEOUT ${TEST_TIMEOUT})
index a8660a1ccfef3d118028efdd81a486c72d3246c4..bf1ce070f27936ae511da99d14a99d5c55e62230 100644 (file)
@@ -29,7 +29,7 @@ extern "C" void *_main(int argc, char *argv[]);
 
 const char *serverName = "servernametest";
 
-TEST(Discovery, Server)
+TEST(Discovery, Server_Runtime)
 {
     char *argv_server[] = {
         const_cast<char *>(BEYOND_PLUGIN_DISCOVERY_DNS_SD_NAME),
@@ -97,7 +97,7 @@ TEST_F(DiscoveryBasicTest, GetHandle)
     EXPECT_GT(client->GetHandle(), 0);
 }
 
-TEST_F(DiscoveryBasicTest, Activate)
+TEST_F(DiscoveryBasicTest, Activate_Runtime)
 {
     EXPECT_EQ(server->Activate(), 0);
     EXPECT_EQ(server->Deactivate(), 0);
@@ -106,7 +106,7 @@ TEST_F(DiscoveryBasicTest, Activate)
     EXPECT_EQ(client->Deactivate(), 0);
 }
 
-TEST_F(DiscoveryBasicTest, ActivateTwice)
+TEST_F(DiscoveryBasicTest, ActivateTwice_Runtime)
 {
     EXPECT_EQ(server->Activate(), 0);
     EXPECT_EQ(server->Activate(), -EALREADY);
@@ -166,7 +166,7 @@ TEST_F(DiscoveryBasicTest, RemoveItemNullptrKey)
     EXPECT_EQ(server->RemoveItem(nullptr), -EINVAL);
 }
 
-TEST_F(DiscoveryBasicTest, FetchEventData)
+TEST_F(DiscoveryBasicTest, FetchEventData_Runtime)
 {
     EXPECT_EQ(server->SetItem("uuid", "testuuid", 8), 0);
     ASSERT_EQ(server->Activate(), 0);
index 1b1977ecc72d647deada186f4702cc83e7c914c6..b46ab6fa49dfa2c058faf72627d23a693ace779c 100644 (file)
@@ -20,7 +20,7 @@ ADD_TEST(
         ${CMAKE_COMMAND} -E env
         LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond:${CMAKE_CURRENT_BINARY_DIR}/../:${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond-authenticator_ssl/:$ENV{LD_LIBRARY_PATH}
         TEST_BASEDIR=${PROJECT_ROOT_DIR}/
-        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
+        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} --gtest_filter=*_Anytime
 )
 
 SET_TESTS_PROPERTIES(${PROJECT_NAME} PROPERTIES TIMEOUT ${TEST_TIMEOUT})
index 2e33920e79acf8414863c96ea721f6a80929cf07..d25031ab0bab72a4d336ba50a6a696050b91869b 100644 (file)
@@ -72,7 +72,7 @@ static struct beyond_peer_info s_edge_info_port = {
     .free_storage = 0llu,
 };
 
-TEST_F(PeerTest, PositiveConstructorDevice)
+TEST_F(PeerTest, PositiveConstructorDevice_Anytime)
 {
     int argc = 1;
     char *argv[2];
@@ -86,7 +86,7 @@ TEST_F(PeerTest, PositiveConstructorDevice)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveConstructorDevice2)
+TEST_F(PeerTest, PositiveConstructorDevice2_Anytime)
 {
     int argc = 1;
     char *argv[2];
@@ -107,7 +107,7 @@ TEST_F(PeerTest, PositiveConstructorDevice2)
     peer2->Destroy();
 }
 
-TEST_F(PeerTest, PositiveConstructorDevice_Framework)
+TEST_F(PeerTest, PositiveConstructorDevice_Framework_Anytime)
 {
     int argc = 3;
     char *argv[3];
@@ -123,7 +123,7 @@ TEST_F(PeerTest, PositiveConstructorDevice_Framework)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveConstructorDevice_Framework2)
+TEST_F(PeerTest, PositiveConstructorDevice_Framework2_Anytime)
 {
     int argc = 5;
     char *argv[5];
@@ -141,7 +141,7 @@ TEST_F(PeerTest, PositiveConstructorDevice_Framework2)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveConstructorEdge)
+TEST_F(PeerTest, PositiveConstructorEdge_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -158,7 +158,7 @@ TEST_F(PeerTest, PositiveConstructorEdge)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveConstructorEdge2)
+TEST_F(PeerTest, PositiveConstructorEdge2_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -182,7 +182,7 @@ TEST_F(PeerTest, PositiveConstructorEdge2)
     peer2->Destroy();
 }
 
-TEST_F(PeerTest, PositiveGetModuleName)
+TEST_F(PeerTest, PositiveGetModuleName_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -202,7 +202,7 @@ TEST_F(PeerTest, PositiveGetModuleName)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoEdge)
+TEST_F(PeerTest, PositiveSetInfoEdge_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -229,7 +229,7 @@ TEST_F(PeerTest, PositiveSetInfoEdge)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoEdge_Event)
+TEST_F(PeerTest, PositiveSetInfoEdge_Event_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -304,7 +304,7 @@ TEST_F(PeerTest, PositiveSetInfoEdge_Event)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoEdge2)
+TEST_F(PeerTest, PositiveSetInfoEdge2_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -345,7 +345,7 @@ TEST_F(PeerTest, PositiveSetInfoEdge2)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoEdge2_Event)
+TEST_F(PeerTest, PositiveSetInfoEdge2_Event_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -479,7 +479,7 @@ TEST_F(PeerTest, PositiveSetInfoEdge2_Event)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoEdge_Port)
+TEST_F(PeerTest, PositiveSetInfoEdge_Port_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -507,7 +507,7 @@ TEST_F(PeerTest, PositiveSetInfoEdge_Port)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, NegativeSetInfoEdge)
+TEST_F(PeerTest, NegativeSetInfoEdge_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -527,7 +527,7 @@ TEST_F(PeerTest, NegativeSetInfoEdge)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveActivateEdge)
+TEST_F(PeerTest, PositiveActivateEdge_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -560,7 +560,7 @@ TEST_F(PeerTest, PositiveActivateEdge)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveActivateEdge2)
+TEST_F(PeerTest, PositiveActivateEdge2_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -602,7 +602,7 @@ TEST_F(PeerTest, PositiveActivateEdge2)
     peer2->Destroy();
 }
 
-TEST_F(PeerTest, NegativeActivateEdge2_PortInUse)
+TEST_F(PeerTest, NegativeActivateEdge2_PortInUse_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -644,7 +644,7 @@ TEST_F(PeerTest, NegativeActivateEdge2_PortInUse)
     peer2->Destroy();
 }
 
-TEST_F(PeerTest, NegativeActivateEdge)
+TEST_F(PeerTest, NegativeActivateEdge_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -680,7 +680,7 @@ TEST_F(PeerTest, NegativeActivateEdge)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, NegativeDeactivateEdge_NoActivate)
+TEST_F(PeerTest, NegativeDeactivateEdge_NoActivate_Anytime)
 {
     int argc = 4;
     char *argv[4];
@@ -710,7 +710,7 @@ TEST_F(PeerTest, NegativeDeactivateEdge_NoActivate)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, NegativeSetInfoDevice)
+TEST_F(PeerTest, NegativeSetInfoDevice_Anytime)
 {
     int argc = 1;
     char *argv[2];
@@ -728,7 +728,7 @@ TEST_F(PeerTest, NegativeSetInfoDevice)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, NegativeSetInfoDevice_InvalidPort)
+TEST_F(PeerTest, NegativeSetInfoDevice_InvalidPort_Anytime)
 {
     int argc = 1;
     char *argv[2];
@@ -745,7 +745,7 @@ TEST_F(PeerTest, NegativeSetInfoDevice_InvalidPort)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoDevice)
+TEST_F(PeerTest, PositiveSetInfoDevice_Anytime)
 {
     int argc = 1;
     char *argv[2];
@@ -769,7 +769,7 @@ TEST_F(PeerTest, PositiveSetInfoDevice)
     peer->Destroy();
 }
 
-TEST_F(PeerTest, PositiveSetInfoDevice_Event)
+TEST_F(PeerTest, PositiveSetInfoDevice_Event_Anytime)
 {
     int argc = 1;
     char *argv[2];
index 3cd5c455057b7e8df0287759ee88ee29e3607e89..3faefe8f8bbea5043a4f1878f8ac7827b067bcdd 100644 (file)
@@ -20,8 +20,8 @@ ADD_TEST(
         ${PROJECT_NAME}
     COMMAND
         ${CMAKE_COMMAND} -E env
-        LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond:${CMAKE_CURRENT_BINARY_DIR}/../:${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond-peer_nn/:${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond-authenticator_ssl/:$ENV{LD_LIBRARY_PATH}
-        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
+        LD_LIBRARY_PATH=../../libbeyond:../:../../libbeyond-peer_nn/:../../libbeyond-authenticator_ssl/:../../libbeyond-discovery_dns_sd/:$ENV{LD_LIBRARY_PATH}
+        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} --gtest_filter=-*_Runtime
 )
 
 SET_TESTS_PROPERTIES(${PROJECT_NAME} PROPERTIES TIMEOUT ${TEST_TIMEOUT})
index 1a03740902df3a1bad4956e71394e67fa318a606..505c4bad8abaad4f4746684d291e2c22f0bd2a16 100644 (file)
@@ -80,7 +80,7 @@ TEST_F(AuthenticatorGeneric, positive_beyond_authenticator_configure)
     beyond_authenticator_destroy(handle);
 }
 
-TEST_F(AuthenticatorGeneric, positive_beyond_authenticator_for_peer)
+TEST_F(AuthenticatorGeneric, positive_beyond_authenticator_for_peer_Runtime)
 {
     beyond_authenticator_h authHandle = beyond_authenticator_create(&s_auth_args);
     ASSERT_NE(authHandle, nullptr);
index 308c79bd3e9f80a9e71261f2124e92185d0e4b24..5e4231ccc38415a45e04cce969353294aebb8e3b 100644 (file)
@@ -95,7 +95,7 @@ TEST_F(AuthenticatorGenericAsync, positive_beyond_authenticator_configure)
     beyond_authenticator_destroy(handle);
 }
 
-TEST_F(AuthenticatorGenericAsync, positive_beyond_authenticator_for_peer)
+TEST_F(AuthenticatorGenericAsync, positive_beyond_authenticator_for_peer_Runtime)
 {
     int invoked = 0;
     beyond_authenticator_h authHandle = beyond_authenticator_create(&s_auth_args);
index 6fd5a1527863e12b4e6f751e1221d4ef821b497d..289f92d5d469ca48706441e3a807d6be0da891e4 100644 (file)
@@ -200,7 +200,7 @@ TEST(discovery, negative_beyond_discovery_set_event_callback_invalidHandle)
     EXPECT_EQ(ret, -EINVAL);
 }
 
-TEST(discovery, positive_beyond_discovery_activate)
+TEST(discovery, positive_beyond_discovery_activate_Runtime)
 {
     auto handle = beyond_discovery_create(&s_device_arg);
     ASSERT_NE(handle, nullptr);
@@ -237,7 +237,7 @@ TEST(discovery, negative_beyond_discovery_deactivate_invalidHandle)
     EXPECT_EQ(ret, -EINVAL);
 }
 
-TEST(discovery, postive_beyond_discovery_event_processing)
+TEST(discovery, postive_beyond_discovery_event_processing_Runtime)
 {
     GMainLoop *loop;
     loop = g_main_loop_new(nullptr, FALSE);
index 4e9d72474746450d8b09373ba61343c1758dab58..022c862f604eabc4c8bb97a82db6cfac8e5cb8ee 100644 (file)
 #include <cerrno>
 #include <beyond/beyond.h>
 
+extern "C" {
+static char *peer_nn_argv[] = {
+    (char *)"peer_nn",
+};
+static struct beyond_argument peer_option = {
+    .argc = sizeof(peer_nn_argv) / sizeof(char *),
+    .argv = peer_nn_argv,
+};
+}
+
 TEST(peer, positive_beyond_peer_create)
 {
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
     beyond_peer_destroy(handle);
 }
 
 TEST(peer, positive_beyond_peer_destroy)
 {
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
     beyond_peer_destroy(handle);
 }
@@ -37,9 +47,9 @@ TEST(peer, negative_beyond_peer_destroy)
     beyond_peer_destroy(nullptr);
 }
 
-TEST(peer, positive_beyond_peer_configure)
+TEST(peer, positive_beyond_peer_configure_Runtime)
 {
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
 
     beyond_config config = { 's', nullptr };
@@ -56,7 +66,7 @@ TEST(peer, negative_beyond_peer_configure)
     auto ret = beyond_peer_configure(nullptr, &config);
     EXPECT_EQ(ret, -EINVAL);
 
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
 
     ret = beyond_peer_configure(handle, nullptr);
@@ -65,9 +75,9 @@ TEST(peer, negative_beyond_peer_configure)
     beyond_peer_destroy(handle);
 }
 
-TEST(peer, positive_beyond_peer_set_event_callback)
+TEST(peer, positive_beyond_peer_set_event_callback_Runtime)
 {
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
 
     beyond_config config = { 's', nullptr };
@@ -86,9 +96,9 @@ TEST(peer, negative_beyond_peer_set_event_callback)
     EXPECT_EQ(ret, -EINVAL);
 }
 
-TEST(peer, positive_beyond_peer_activate)
+TEST(peer, positive_beyond_peer_activate_Runtime)
 {
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
 
     beyond_config config = { 's', nullptr };
@@ -102,15 +112,15 @@ TEST(peer, positive_beyond_peer_activate)
     beyond_peer_destroy(handle);
 }
 
-TEST(peer, negative_beyond_peer_activate)
+TEST(peer, negative_beyond_peer_activate_Runtime)
 {
     auto ret = beyond_peer_activate(nullptr);
     EXPECT_EQ(ret, -EINVAL);
 }
 
-TEST(peer, positive_beyond_peer_deactivate)
+TEST(peer, positive_beyond_peer_deactivate_Runtime)
 {
-    auto handle = beyond_peer_create(nullptr);
+    auto handle = beyond_peer_create(&peer_option);
     ASSERT_NE(handle, nullptr);
 
     beyond_config config = { 's', nullptr };
index f9c7441c90d4c7b1d911072c4d21b2aaea34cca0..491070de23f0ff01b0cbb4e352ee760e848ebbd7 100644 (file)
@@ -19,8 +19,8 @@ ADD_TEST(
         ${PROJECT_NAME}
     COMMAND
         ${CMAKE_COMMAND} -E env
-        LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond:${CMAKE_CURRENT_BINARY_DIR}/../:${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond-peer_nn/:${CMAKE_CURRENT_BINARY_DIR}/../../libbeyond-authenticator_ssl/:$ENV{LD_LIBRARY_PATH}
-        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
+        LD_LIBRARY_PATH=../../libbeyond:../:../../libbeyond-peer_nn/:../../libbeyond-authenticator_ssl/:../../libbeyond-discovery_dns_sd/:$ENV{LD_LIBRARY_PATH}
+        ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} --gtest_filter=*_Anytime
 )
 
 SET_TESTS_PROPERTIES(${PROJECT_NAME} PROPERTIES TIMEOUT ${TEST_TIMEOUT})
index 0821b595bf6ed19ada6847ae49a937cd7fc07d44..4c3dbf79ec0bd4fd4bc353e4db8dcc852ae30158 100644 (file)
@@ -128,7 +128,7 @@ static beyond_authenticator_ssl_config_ssl sslConfig = {
     .alternative_name = "127.0.0.1",
 };
 
-TEST(Authenticator, PositiveCreate)
+TEST(Authenticator, PositiveCreate_Anytime)
 {
     auto authenticator = beyond::Authenticator::Create(&arg);
     ASSERT_NE(authenticator, nullptr);
@@ -136,7 +136,7 @@ TEST(Authenticator, PositiveCreate)
     authenticator->Destroy();
 }
 
-TEST(Authenticator, PositiveDestroy)
+TEST(Authenticator, PositiveDestroy_Anytime)
 {
     auto authenticator = beyond::Authenticator::Create(&arg);
     ASSERT_NE(authenticator, nullptr);
@@ -144,7 +144,7 @@ TEST(Authenticator, PositiveDestroy)
     authenticator->Destroy();
 }
 
-TEST(Authenticator, PositiveConfigure_null)
+TEST(Authenticator, PositiveConfigure_null_Anytime)
 {
     auto authenticator = beyond::Authenticator::Create(&arg);
     ASSERT_NE(authenticator, nullptr);
@@ -155,7 +155,7 @@ TEST(Authenticator, PositiveConfigure_null)
     authenticator->Destroy();
 }
 
-TEST(Authenticator, PositiveActivate)
+TEST(Authenticator, PositiveActivate_Anytime)
 {
     auto authenticator = beyond::Authenticator::Create(&arg);
     ASSERT_NE(authenticator, nullptr);
@@ -172,7 +172,7 @@ TEST(Authenticator, PositiveActivate)
     authenticator->Destroy();
 }
 
-TEST(Authenticator, PositiveDeactivate)
+TEST(Authenticator, PositiveDeactivate_Anytime)
 {
     auto authenticator = beyond::Authenticator::Create(&arg);
     ASSERT_NE(authenticator, nullptr);
@@ -189,7 +189,7 @@ TEST(Authenticator, PositiveDeactivate)
     authenticator->Destroy();
 }
 
-TEST(Authenticator, PositiveGetHandle)
+TEST(Authenticator, PositiveGetHandle_Anytime)
 {
     auto authenticator = beyond::Authenticator::Create(&arg);
     ASSERT_NE(authenticator, nullptr);
index a9041cdb0d19ff5e113d18416c539b9784de5ba2..ad1afe26a4d3fab89e02d3712b70a5353d582f65 100644 (file)
@@ -48,27 +48,27 @@ beyond_argument args_client = {
     .argv = argv_client,
 };
 
-TEST(Discovery, CreateServer)
+TEST(Discovery, CreateServer_Anytime)
 {
     auto discovery = beyond::Discovery::Create(&args_server);
     ASSERT_NE(discovery, nullptr);
     discovery->Destroy();
 }
 
-TEST(Discovery, CreateClient)
+TEST(Discovery, CreateClient_Anytime)
 {
     auto discovery = beyond::Discovery::Create(&args_client);
     ASSERT_NE(discovery, nullptr);
     discovery->Destroy();
 }
 
-TEST(Discovery, CreateWithNullptr)
+TEST(Discovery, CreateWithNullptr_Anytime)
 {
     auto discovery = beyond::Discovery::Create(nullptr);
     ASSERT_EQ(discovery, nullptr);
 }
 
-TEST(Discovery, CreateWithInvalidModule)
+TEST(Discovery, CreateWithInvalidModule_Anytime)
 {
     char *argv_invalid[] = {
         const_cast<char *>("discovery_invalid"),
@@ -83,14 +83,14 @@ TEST(Discovery, CreateWithInvalidModule)
     ASSERT_EQ(discovery, nullptr);
 }
 
-TEST(Discovery, Destroy)
+TEST(Discovery, Destroy_Anytime)
 {
     auto discovery = beyond::Discovery::Create(&args_server);
     ASSERT_NE(discovery, nullptr);
     discovery->Destroy();
 }
 
-TEST(Discovery, Configure)
+TEST(Discovery, Configure_Anytime)
 {
     auto discovery = beyond::Discovery::Create(&args_server);
     ASSERT_NE(discovery, nullptr);
index cb11305943332f46b256eb74ae72751bbb16d509..5a08b45efa21756dcf252080bc7224c06f335078 100644 (file)
 #include <gtest/gtest.h>
 #include <unistd.h>
 
-TEST(EventLoop, Create)
+TEST(EventLoop, Create_Anytime)
 {
     auto loop = beyond::EventLoop::Create();
     ASSERT_NE(loop, nullptr);
     loop->Destroy();
 }
 
-TEST(EventLoop, Run)
+TEST(EventLoop, Run_Anytime)
 {
     auto loop = beyond::EventLoop::Create();
     ASSERT_NE(loop, nullptr);
@@ -39,7 +39,7 @@ TEST(EventLoop, Run)
     loop->Destroy();
 }
 
-TEST(EventLoop, RunAsync)
+TEST(EventLoop, RunAsync_Anytime)
 {
     auto loop = beyond::EventLoop::Create(true);
     ASSERT_NE(loop, nullptr);
@@ -53,7 +53,7 @@ TEST(EventLoop, RunAsync)
     loop->Destroy();
 }
 
-TEST(EventLoop, Stop)
+TEST(EventLoop, Stop_Anytime)
 {
     auto loop = beyond::EventLoop::Create();
     ASSERT_NE(loop, nullptr);
@@ -74,7 +74,7 @@ TEST(EventLoop, Stop)
     loop->Destroy();
 }
 
-TEST(EventLoop, StopAsync)
+TEST(EventLoop, StopAsync_Anytime)
 {
     auto loop = beyond::EventLoop::Create(true);
     ASSERT_NE(loop, nullptr);
@@ -94,7 +94,7 @@ TEST(EventLoop, StopAsync)
     loop->Destroy();
 }
 
-TEST(EventLoop, AddEventHandler_Basic)
+TEST(EventLoop, AddEventHandler_Basic_Anytime)
 {
     auto loop = beyond::EventLoop::Create();
     ASSERT_NE(loop, nullptr);