Cleanup test case names 85/37385/3
authorLukasz Kostyra <l.kostyra@samsung.com>
Wed, 25 Mar 2015 10:57:30 +0000 (11:57 +0100)
committerLukasz Kostyra <l.kostyra@samsung.com>
Wed, 25 Mar 2015 13:32:43 +0000 (14:32 +0100)
[Feature]       Renamed test case names
[Cause]         Inconsistent test case names
[Solution]      Rename tests, keep the naming consistent
[Verification]  Build, install, run tests

Change-Id: I76da5f2bedcbe361ebcd5d4a612129a867599a16

23 files changed:
tests/unit_tests/client/ut-client-utils.cpp
tests/unit_tests/client/ut-client.cpp
tests/unit_tests/config/ut-configuration.cpp
tests/unit_tests/config/ut-kvstore.cpp
tests/unit_tests/dbus/ut-connection.cpp
tests/unit_tests/ipc/ut-ipc.cpp
tests/unit_tests/log/ut-logger.cpp
tests/unit_tests/lxc/ut-zone.cpp
tests/unit_tests/server/ut-input-monitor.cpp
tests/unit_tests/server/ut-server.cpp
tests/unit_tests/server/ut-zone-admin.cpp
tests/unit_tests/server/ut-zone-connection.cpp
tests/unit_tests/server/ut-zone-provision.cpp
tests/unit_tests/server/ut-zone.cpp
tests/unit_tests/server/ut-zones-manager.cpp
tests/unit_tests/utils/ut-callback-guard.cpp
tests/unit_tests/utils/ut-counting-map.cpp
tests/unit_tests/utils/ut-fs.cpp
tests/unit_tests/utils/ut-glib-loop.cpp
tests/unit_tests/utils/ut-paths.cpp
tests/unit_tests/utils/ut-same-thread-guard.cpp
tests/unit_tests/utils/ut-value-latch.cpp
tests/unit_tests/utils/ut-worker.cpp

index 140238a..459a1b1 100644 (file)
@@ -30,7 +30,7 @@
 
 BOOST_AUTO_TEST_SUITE(ClientUtils)
 
-BOOST_AUTO_TEST_CASE(ParseZoneIdFromCpuSetTest)
+BOOST_AUTO_TEST_CASE(ParseZoneIdFromCpuSet)
 {
     auto testBad = [](const std::string& input) {
         std::string ret;
index ce31795..197da5e 100644 (file)
@@ -151,7 +151,7 @@ std::ostream& operator<<(std::ostream& out, VsmStatus status)
 
 BOOST_FIXTURE_TEST_SUITE(ClientSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(NotRunningServerTest)
+BOOST_AUTO_TEST_CASE(NotRunningServer)
 {
     cm.shutdownAll();
 
@@ -162,7 +162,7 @@ BOOST_AUTO_TEST_CASE(NotRunningServerTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(GetZoneDbusesTest)
+BOOST_AUTO_TEST_CASE(GetZoneDbuses)
 {
     VsmClient client = vsm_client_create();
     VsmStatus status = vsm_connect(client);
@@ -185,7 +185,7 @@ BOOST_AUTO_TEST_CASE(GetZoneDbusesTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(GetZoneIdsTest)
+BOOST_AUTO_TEST_CASE(GetZoneIds)
 {
     VsmClient client = vsm_client_create();
     VsmStatus status = vsm_connect(client);
@@ -206,7 +206,7 @@ BOOST_AUTO_TEST_CASE(GetZoneIdsTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(GetActiveZoneIdTest)
+BOOST_AUTO_TEST_CASE(GetActiveZoneId)
 {
     VsmClient client = vsm_client_create();
     VsmStatus status = vsm_connect(client);
@@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE(GetActiveZoneIdTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(SetActiveZoneTest)
+BOOST_AUTO_TEST_CASE(SetActiveZone)
 {
     const std::string newActiveZoneId = "zone2";
 
@@ -236,7 +236,7 @@ BOOST_AUTO_TEST_CASE(SetActiveZoneTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(CreateZoneTest)
+BOOST_AUTO_TEST_CASE(CreateZone)
 {
     const std::string newActiveZoneId = "";
 
@@ -248,7 +248,7 @@ BOOST_AUTO_TEST_CASE(CreateZoneTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(StartShutdownZoneTest)
+BOOST_AUTO_TEST_CASE(StartShutdownZone)
 {
     const std::string newActiveZoneId = "zone1";
 
@@ -262,7 +262,7 @@ BOOST_AUTO_TEST_CASE(StartShutdownZoneTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(LockUnlockZoneTest)
+BOOST_AUTO_TEST_CASE(LockUnlockZone)
 {
     const std::string newActiveZoneId = "zone2";
 
@@ -276,7 +276,7 @@ BOOST_AUTO_TEST_CASE(LockUnlockZoneTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(FileMoveRequestTest)
+BOOST_AUTO_TEST_CASE(FileMoveRequest)
 {
     const std::string path = "/tmp/fake_path";
     const std::string secondZone = "fake_zone";
@@ -291,7 +291,7 @@ BOOST_AUTO_TEST_CASE(FileMoveRequestTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(NotificationTest)
+BOOST_AUTO_TEST_CASE(Notification)
 {
     const std::string MSG_CONTENT = "msg";
     const std::string MSG_APP = "app";
@@ -346,7 +346,7 @@ BOOST_AUTO_TEST_CASE(NotificationTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(GetZoneIdByPidTest1)
+BOOST_AUTO_TEST_CASE(GetZoneIdByPidTestSingle)
 {
     VsmClient client = vsm_client_create();
     VsmString zone;
@@ -359,7 +359,7 @@ BOOST_AUTO_TEST_CASE(GetZoneIdByPidTest1)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(GetZoneIdByPidTest2)
+BOOST_AUTO_TEST_CASE(GetZoneIdByPidTestMultiple)
 {
     std::set<std::string> ids;
 
@@ -383,7 +383,7 @@ BOOST_AUTO_TEST_CASE(GetZoneIdByPidTest2)
     }
 }
 
-BOOST_AUTO_TEST_CASE(GrantRevokeTest)
+BOOST_AUTO_TEST_CASE(GrantRevoke)
 {
     const std::string zoneId = "zone2";
     const std::string dev = "tty3";
@@ -405,7 +405,7 @@ BOOST_AUTO_TEST_CASE(GrantRevokeTest)
     vsm_client_free(client);
 }
 
-BOOST_AUTO_TEST_CASE(ProvisionTest)
+BOOST_AUTO_TEST_CASE(Provision)
 {
     VsmClient client = vsm_client_create();
     BOOST_REQUIRE_EQUAL(VSMCLIENT_SUCCESS, vsm_connect(client));
index 8049975..a9a5332 100644 (file)
@@ -52,7 +52,7 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(ConfigurationSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(FromJsonStringTest)
+BOOST_AUTO_TEST_CASE(FromJsonString)
 {
     TestConfig testConfig;
 
@@ -117,7 +117,7 @@ BOOST_AUTO_TEST_CASE(FromJsonStringTest)
 }
 
 
-BOOST_AUTO_TEST_CASE(ToJsonStringTest)
+BOOST_AUTO_TEST_CASE(ToJsonString)
 {
     TestConfig testConfig;
     BOOST_REQUIRE_NO_THROW(loadFromJsonString(jsonTestString, testConfig));
@@ -153,7 +153,7 @@ struct UnionConfig {
 
 } // namespace loadErrorsTest
 
-BOOST_AUTO_TEST_CASE(JsonLoadErrorsTest)
+BOOST_AUTO_TEST_CASE(JsonLoadErrors)
 {
     using namespace loadErrorsTest;
 
@@ -256,7 +256,7 @@ struct NotFunction {
 
 } // namespace hasVisitableTest
 
-BOOST_AUTO_TEST_CASE(HasVisibleInternalHelperTest)
+BOOST_AUTO_TEST_CASE(HasVisibleInternalHelper)
 {
     using namespace hasVisitableTest;
 
@@ -273,7 +273,7 @@ BOOST_AUTO_TEST_CASE(HasVisibleInternalHelperTest)
     BOOST_CHECK(isVisitable<Visitable>());
 }
 
-BOOST_AUTO_TEST_CASE(FromToKVStoreTest)
+BOOST_AUTO_TEST_CASE(FromToKVStore)
 {
     TestConfig config;
     loadFromJsonString(jsonTestString, config);
@@ -286,7 +286,7 @@ BOOST_AUTO_TEST_CASE(FromToKVStoreTest)
     BOOST_CHECK_EQUAL(out, jsonTestString);
 }
 
-BOOST_AUTO_TEST_CASE(FromToFDTest)
+BOOST_AUTO_TEST_CASE(FromToFD)
 {
     TestConfig config;
     loadFromJsonString(jsonTestString, config);
@@ -307,7 +307,7 @@ BOOST_AUTO_TEST_CASE(FromToFDTest)
     BOOST_CHECK(::close(fd) >= 0);
 }
 
-BOOST_AUTO_TEST_CASE(FromKVWithDefaultsTest)
+BOOST_AUTO_TEST_CASE(FromKVWithDefaults)
 {
     TestConfig config;
     loadFromJsonString(jsonTestString, config);
@@ -328,7 +328,7 @@ BOOST_AUTO_TEST_CASE(FromKVWithDefaultsTest)
     BOOST_CHECK_EQUAL(out2, jsonTestString);
 }
 
-BOOST_AUTO_TEST_CASE(PartialConfigTest)
+BOOST_AUTO_TEST_CASE(PartialConfig)
 {
     // check if partial config is fully supported
     TestConfig config;
@@ -379,7 +379,7 @@ BOOST_AUTO_TEST_CASE(PartialConfigTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(ConfigUnionTest)
+BOOST_AUTO_TEST_CASE(ConfigUnion)
 {
     TestConfig testConfig;
     BOOST_REQUIRE_NO_THROW(loadFromJsonString(jsonTestString, testConfig));
@@ -426,7 +426,7 @@ BOOST_AUTO_TEST_CASE(ConfigUnionTest)
 }
 
 
-BOOST_AUTO_TEST_CASE(GVariantVisitorTest)
+BOOST_AUTO_TEST_CASE(GVariantVisitor)
 {
     TestConfig testConfig;
     BOOST_REQUIRE_NO_THROW(loadFromJsonString(jsonTestString, testConfig));
index 1129bdf..239f568 100644 (file)
@@ -98,7 +98,7 @@ BOOST_FIXTURE_TEST_SUITE(KVStoreSuite, Fixture)
 
 const std::string KEY = "KEY";
 
-BOOST_AUTO_TEST_CASE(SimpleConstructorDestructorTest)
+BOOST_AUTO_TEST_CASE(SimpleConstructorDestructor)
 {
     std::unique_ptr<KVStore> conPtr;
     BOOST_REQUIRE_NO_THROW(conPtr.reset(new KVStore(dbPath)));
@@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE(SimpleConstructorDestructorTest)
     BOOST_CHECK(fs::exists(dbPath));
 }
 
-BOOST_AUTO_TEST_CASE(EscapedCharactersTest)
+BOOST_AUTO_TEST_CASE(EscapedCharacters)
 {
     // '*' ?' '[' ']' are escaped
     // They shouldn't influence the internal implementation
@@ -162,7 +162,7 @@ void testSingleValue(Fixture& f, const A& a, const B& b)
 } // namespace
 
 
-BOOST_AUTO_TEST_CASE(SingleValueTest)
+BOOST_AUTO_TEST_CASE(SingleValue)
 {
     testSingleValue<std::string, std::string>(*this, "A", "B");
     testSingleValue<int, int>(*this, 1, 2);
@@ -202,7 +202,7 @@ void testVectorOfValues(Fixture& f,
 }
 } // namespace
 
-BOOST_AUTO_TEST_CASE(VectorOfValuesTest)
+BOOST_AUTO_TEST_CASE(VectorOfValues)
 {
     testVectorOfValues<std::string>(*this, {"A", "B"}, {"A", "C"}, {"A", "B", "C"});
     testVectorOfValues<int>(*this, {1, 2}, {1, 3}, {1, 2, 3});
@@ -211,7 +211,7 @@ BOOST_AUTO_TEST_CASE(VectorOfValuesTest)
     testVectorOfValues<TestClass>(*this, {1, 2}, {1, 3}, {1, 2, 3});
 }
 
-BOOST_AUTO_TEST_CASE(ClearTest)
+BOOST_AUTO_TEST_CASE(Clear)
 {
     BOOST_CHECK_NO_THROW(c.clear());
     std::vector<std::string> vec = {"A", "B"};
@@ -224,7 +224,7 @@ BOOST_AUTO_TEST_CASE(ClearTest)
     BOOST_CHECK_THROW(c.get(KEY), ConfigException);
 }
 
-BOOST_AUTO_TEST_CASE(TransactionTest)
+BOOST_AUTO_TEST_CASE(Transaction)
 {
     {
         KVStore::Transaction trans(c);
@@ -248,7 +248,7 @@ BOOST_AUTO_TEST_CASE(TransactionTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(TransactionStackedTest)
+BOOST_AUTO_TEST_CASE(TransactionStacked)
 {
     {
         KVStore::Transaction transOuter(c);
@@ -285,7 +285,7 @@ BOOST_AUTO_TEST_CASE(TransactionStackedTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(TransactionThreadsTest)
+BOOST_AUTO_TEST_CASE(TransactionThreads)
 {
     Latch trans1Started, trans1Release, trans2Released;
     std::thread thread1([&] {
@@ -306,7 +306,7 @@ BOOST_AUTO_TEST_CASE(TransactionThreadsTest)
     thread2.join();
 }
 
-BOOST_AUTO_TEST_CASE(KeyTest)
+BOOST_AUTO_TEST_CASE(Key)
 {
     BOOST_CHECK_EQUAL(key(), "");
     BOOST_CHECK_EQUAL(key<>(), "");
index e52778e..84ea626 100644 (file)
@@ -96,24 +96,24 @@ std::string getInterfaceFromIntrospectionXML(const std::string& xml, const std::
 
 } // namespace
 
-BOOST_AUTO_TEST_CASE(DbusDaemonTest)
+BOOST_AUTO_TEST_CASE(DbusDaemon)
 {
     ScopedDbusDaemon daemon;
 }
 
-BOOST_AUTO_TEST_CASE(NoDbusTest)
+BOOST_AUTO_TEST_CASE(NoDbus)
 {
     ScopedGlibLoop loop;
     BOOST_CHECK_THROW(DbusConnection::create(DBUS_ADDRESS), DbusIOException);
 }
 
-BOOST_AUTO_TEST_CASE(ConnectionTest)
+BOOST_AUTO_TEST_CASE(Connection)
 {
     ScopedGlibLoop loop;
     DbusConnection::Pointer connSystem = DbusConnection::createSystem();
 }
 
-BOOST_AUTO_TEST_CASE(SimpleTest)
+BOOST_AUTO_TEST_CASE(Simple)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE(SimpleTest)
     BOOST_CHECK(nameLost.empty());
 }
 
-BOOST_AUTO_TEST_CASE(ConnectionLostTest)
+BOOST_AUTO_TEST_CASE(ConnectionLost)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -147,7 +147,7 @@ BOOST_AUTO_TEST_CASE(ConnectionLostTest)
     BOOST_CHECK(nameLost.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(NameOwnerTest)
+BOOST_AUTO_TEST_CASE(NameOwner)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -177,7 +177,7 @@ BOOST_AUTO_TEST_CASE(NameOwnerTest)
     //BOOST_CHECK(nameAcquired2.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(GenericSignalTest)
+BOOST_AUTO_TEST_CASE(GenericSignal)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -208,7 +208,7 @@ BOOST_AUTO_TEST_CASE(GenericSignalTest)
     BOOST_CHECK(signalEmitted.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(FilteredSignalTest)
+BOOST_AUTO_TEST_CASE(FilteredSignal)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -259,7 +259,7 @@ BOOST_AUTO_TEST_CASE(FilteredSignalTest)
     BOOST_CHECK(wrongSignalEmitted.empty());
 }
 
-BOOST_AUTO_TEST_CASE(RegisterObjectTest)
+BOOST_AUTO_TEST_CASE(RegisterObject)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -274,7 +274,7 @@ BOOST_AUTO_TEST_CASE(RegisterObjectTest)
     BOOST_CHECK_NO_THROW(conn->registerObject(TESTAPI_OBJECT_PATH, TESTAPI_DEFINITION, callback));
 }
 
-BOOST_AUTO_TEST_CASE(IntrospectSystemTest)
+BOOST_AUTO_TEST_CASE(IntrospectSystem)
 {
     ScopedGlibLoop loop;
     DbusConnection::Pointer conn = DbusConnection::createSystem();
@@ -283,7 +283,7 @@ BOOST_AUTO_TEST_CASE(IntrospectSystemTest)
     BOOST_CHECK(!iface.empty());
 }
 
-BOOST_AUTO_TEST_CASE(IntrospectTest)
+BOOST_AUTO_TEST_CASE(Introspect)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -309,7 +309,7 @@ BOOST_AUTO_TEST_CASE(IntrospectTest)
     BOOST_CHECK(std::string::npos != iface.find(TESTAPI_SIGNAL_NOTIFY));
 }
 
-BOOST_AUTO_TEST_CASE(MethodCallTest)
+BOOST_AUTO_TEST_CASE(MethodCall)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -372,7 +372,7 @@ BOOST_AUTO_TEST_CASE(MethodCallTest)
                       DbusCustomException);
 }
 
-BOOST_AUTO_TEST_CASE(MethodAsyncCallTest)
+BOOST_AUTO_TEST_CASE(MethodAsyncCall)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -457,7 +457,7 @@ BOOST_AUTO_TEST_CASE(MethodAsyncCallTest)
     BOOST_REQUIRE(callDone.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(MethodAsyncCallAsyncHandlerTest)
+BOOST_AUTO_TEST_CASE(MethodAsyncCallAsyncHandler)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -513,7 +513,7 @@ BOOST_AUTO_TEST_CASE(MethodAsyncCallAsyncHandlerTest)
     BOOST_REQUIRE(callDone.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(MethodCallExceptionTest)
+BOOST_AUTO_TEST_CASE(MethodCallException)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -559,7 +559,7 @@ BOOST_AUTO_TEST_CASE(MethodCallExceptionTest)
                       DbusOperationException);
 }
 
-BOOST_AUTO_TEST_CASE(DbusApiTest)
+BOOST_AUTO_TEST_CASE(DbusApi)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -575,7 +575,7 @@ BOOST_AUTO_TEST_CASE(DbusApiTest)
                           WhatEquals("Argument: 666"));
 }
 
-BOOST_AUTO_TEST_CASE(DbusApiNotifyTest)
+BOOST_AUTO_TEST_CASE(DbusApiNotify)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -594,7 +594,7 @@ BOOST_AUTO_TEST_CASE(DbusApiNotifyTest)
     BOOST_CHECK(notified.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(DbusApiNameAcquiredTest)
+BOOST_AUTO_TEST_CASE(DbusApiNameAcquired)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -606,7 +606,7 @@ BOOST_AUTO_TEST_CASE(DbusApiNameAcquiredTest)
     BOOST_CHECK_NO_THROW(client.noop());
 }
 
-BOOST_AUTO_TEST_CASE(DbusApiConnectionLost1Test)
+BOOST_AUTO_TEST_CASE(DbusApiConnectionLost)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
@@ -622,7 +622,7 @@ BOOST_AUTO_TEST_CASE(DbusApiConnectionLost1Test)
     BOOST_CHECK_THROW(client.noop(), DbusIOException);
 }
 
-BOOST_AUTO_TEST_CASE(DbusApiConnectionLost2Test)
+BOOST_AUTO_TEST_CASE(DbusApiConnectionLostDelayedCallbackSet)
 {
     ScopedDbusDaemon daemon;
     ScopedGlibLoop loop;
index 8f47a65..6f2765b 100644 (file)
@@ -702,7 +702,7 @@ MULTI_FIXTURE_TEST_CASE(MixOperations, F, ThreadedFixture, GlibFixture)
     BOOST_CHECK(l.wait(TIMEOUT));
 }
 
-// MULTI_FIXTURE_TEST_CASE(ConnectionLimitTest, F, ThreadedFixture, GlibFixture)
+// MULTI_FIXTURE_TEST_CASE(ConnectionLimit, F, ThreadedFixture, GlibFixture)
 // {
 //     unsigned oldLimit = ipc::getMaxFDNumber();
 //     ipc::setMaxFDNumber(50);
index ef3634e..36f52e3 100644 (file)
@@ -97,7 +97,7 @@ void exampleTestLogs(void)
 
 } // namespace
 
-BOOST_AUTO_TEST_CASE(LogLevelSetandGet)
+BOOST_AUTO_TEST_CASE(LogLevelSetAndGet)
 {
     Logger::setLogLevel(LogLevel::TRACE);
     BOOST_CHECK(LogLevel::TRACE == Logger::getLogLevel());
@@ -115,7 +115,7 @@ BOOST_AUTO_TEST_CASE(LogLevelSetandGet)
     BOOST_CHECK(LogLevel::ERROR == Logger::getLogLevel());
 }
 
-BOOST_AUTO_TEST_CASE(StringLogLevelSetandGet)
+BOOST_AUTO_TEST_CASE(StringLogLevelSetAndGet)
 {
     Logger::setLogLevel("TRACE");
     BOOST_CHECK(LogLevel::TRACE == Logger::getLogLevel());
@@ -140,7 +140,7 @@ BOOST_AUTO_TEST_CASE(StringLogLevelSetandGet)
                             WhatEquals("Invalid LogLevel to parse")); //TODO change message
 }
 
-BOOST_AUTO_TEST_CASE(TestLogsError)
+BOOST_AUTO_TEST_CASE(LogsLevelError)
 {
     TestLog tf(LogLevel::ERROR);
     exampleTestLogs();
@@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(TestLogsError)
     BOOST_CHECK(tf.logContains("[TRACE]") == false);
 }
 
-BOOST_AUTO_TEST_CASE(TestLogsWarn)
+BOOST_AUTO_TEST_CASE(LogsLevelWarn)
 {
     TestLog tf(LogLevel::WARN);
     exampleTestLogs();
@@ -164,7 +164,7 @@ BOOST_AUTO_TEST_CASE(TestLogsWarn)
     BOOST_CHECK(tf.logContains("[TRACE]") == false);
 }
 
-BOOST_AUTO_TEST_CASE(TestLogsInfo)
+BOOST_AUTO_TEST_CASE(LogsLevelInfo)
 {
     TestLog tf(LogLevel::INFO);
     exampleTestLogs();
@@ -176,7 +176,7 @@ BOOST_AUTO_TEST_CASE(TestLogsInfo)
     BOOST_CHECK(tf.logContains("[TRACE]") == false);
 }
 
-BOOST_AUTO_TEST_CASE(TestLogsDebug)
+BOOST_AUTO_TEST_CASE(LogsLevelDebug)
 {
     TestLog tf(LogLevel::DEBUG);
     exampleTestLogs();
@@ -188,7 +188,7 @@ BOOST_AUTO_TEST_CASE(TestLogsDebug)
     BOOST_CHECK(tf.logContains("[TRACE]") == false);
 }
 
-BOOST_AUTO_TEST_CASE(TestLogsTrace)
+BOOST_AUTO_TEST_CASE(LogsLevelTrace)
 {
     TestLog tf(LogLevel::TRACE);
     exampleTestLogs();
@@ -200,7 +200,7 @@ BOOST_AUTO_TEST_CASE(TestLogsTrace)
     BOOST_CHECK(tf.logContains("[TRACE]") == true);
 }
 
-BOOST_AUTO_TEST_CASE(TestLoggerScope)
+BOOST_AUTO_TEST_CASE(LoggerScope)
 {
     LOGS("Main function scope");
 
index 3b375bd..194a2a6 100644 (file)
@@ -80,12 +80,12 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(LxcZoneSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(ConstructorDestructorTest)
+BOOST_AUTO_TEST_CASE(ConstructorDestructor)
 {
     LxcZone lxc(LXC_PATH, ZONE_NAME);
 }
 
-BOOST_AUTO_TEST_CASE(CreateDestroyTest)
+BOOST_AUTO_TEST_CASE(CreateDestroy)
 {
     LxcZone lxc(LXC_PATH, ZONE_NAME);
     BOOST_CHECK(!lxc.isDefined());
@@ -101,7 +101,7 @@ BOOST_AUTO_TEST_CASE(CreateDestroyTest)
     BOOST_CHECK(!lxc.isDefined());
 }
 
-BOOST_AUTO_TEST_CASE(StartShutdownTest)
+BOOST_AUTO_TEST_CASE(StartShutdown)
 {
     {
         LxcZone lxc(LXC_PATH, ZONE_NAME);
@@ -124,7 +124,7 @@ BOOST_AUTO_TEST_CASE(StartShutdownTest)
     BOOST_CHECK(lxc.destroy());
 }
 
-BOOST_AUTO_TEST_CASE(StartStopTest)
+BOOST_AUTO_TEST_CASE(StartStop)
 {
     {
         LxcZone lxc(LXC_PATH, ZONE_NAME);
@@ -149,7 +149,7 @@ BOOST_AUTO_TEST_CASE(StartStopTest)
     BOOST_CHECK(lxc.destroy());
 }
 
-BOOST_AUTO_TEST_CASE(StartHasStoppedTest)
+BOOST_AUTO_TEST_CASE(StartHasStopped)
 {
     {
         LxcZone lxc(LXC_PATH, ZONE_NAME);
@@ -170,7 +170,7 @@ BOOST_AUTO_TEST_CASE(StartHasStoppedTest)
     BOOST_CHECK(lxc.destroy());
 }
 
-BOOST_AUTO_TEST_CASE(FreezeUnfreezeTest)
+BOOST_AUTO_TEST_CASE(FreezeUnfreeze)
 {
     LxcZone lxc(LXC_PATH, ZONE_NAME);
     BOOST_CHECK(lxc.create(TEMPLATE, TEMPLATE_ARGS));
@@ -193,7 +193,7 @@ BOOST_AUTO_TEST_CASE(FreezeUnfreezeTest)
     BOOST_CHECK(lxc.destroy());
 }
 
-BOOST_AUTO_TEST_CASE(FreezeStopTest)
+BOOST_AUTO_TEST_CASE(FreezeStop)
 {
     LxcZone lxc(LXC_PATH, ZONE_NAME);
     BOOST_CHECK(lxc.create(TEMPLATE, TEMPLATE_ARGS));
@@ -216,7 +216,7 @@ BOOST_AUTO_TEST_CASE(FreezeStopTest)
     BOOST_CHECK(lxc.destroy());
 }
 
-BOOST_AUTO_TEST_CASE(RepeatTest)
+BOOST_AUTO_TEST_CASE(Repeat)
 {
     LxcZone lxc(LXC_PATH, ZONE_NAME);
     BOOST_CHECK(lxc.create(TEMPLATE, TEMPLATE_ARGS));
index 3560b40..454a307 100644 (file)
@@ -89,12 +89,12 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(InputMonitorSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(Config_OK)
+BOOST_AUTO_TEST_CASE(ConfigOK)
 {
     InputMonitor inputMonitor(inputConfig, InputMonitor::NotifyCallback());
 }
 
-BOOST_AUTO_TEST_CASE(Config_timeWindowMsTooHigh)
+BOOST_AUTO_TEST_CASE(ConfigTimeWindowMsTooHigh)
 {
     inputConfig.timeWindowMs = 50000;
 
@@ -103,7 +103,7 @@ BOOST_AUTO_TEST_CASE(Config_timeWindowMsTooHigh)
                             WhatEquals("Time window exceeds maximum"));
 }
 
-BOOST_AUTO_TEST_CASE(Config_deviceFilePathNotExisting)
+BOOST_AUTO_TEST_CASE(ConfigDeviceFilePathNotExisting)
 {
     inputConfig.device = TEST_INPUT_DEVICE + "notExisting";
 
@@ -148,12 +148,12 @@ void sendNEvents(Fixture& f, unsigned int noOfEventsToSend)
 
 } // namespace
 
-BOOST_AUTO_TEST_CASE(Event_oneAtATime)
+BOOST_AUTO_TEST_CASE(EventOneAtATime)
 {
     sendNEvents(*this, 1);
 }
 
-BOOST_AUTO_TEST_CASE(Event_tenAtATime)
+BOOST_AUTO_TEST_CASE(EventTenAtATime)
 {
     sendNEvents(*this, 10);
 }
@@ -199,12 +199,12 @@ void sendNEventsWithPauses(Fixture& f, unsigned int noOfEventsToSend)
 
 } // namespace
 
-BOOST_AUTO_TEST_CASE(Event_oneAtATimeWithPauses)
+BOOST_AUTO_TEST_CASE(EventOneAtATimeWithPauses)
 {
     sendNEventsWithPauses(*this, 1);
 }
 
-BOOST_AUTO_TEST_CASE(Event_tenAtATimeWithPauses)
+BOOST_AUTO_TEST_CASE(EventTenAtATimeWithPauses)
 {
     sendNEventsWithPauses(*this, 10);
 }
index eccea8a..8466f19 100644 (file)
@@ -73,34 +73,34 @@ BOOST_FIXTURE_TEST_SUITE(ServerSuite, Fixture)
 using namespace vasum;
 using namespace config;
 
-BOOST_AUTO_TEST_CASE(ConstructorDestructorTest)
+BOOST_AUTO_TEST_CASE(ConstructorDestructor)
 {
     std::unique_ptr<Server> s;
     s.reset(new Server(TEST_CONFIG_PATH));
     s.reset();
 }
 
-BOOST_AUTO_TEST_CASE(MissingConfigTest)
+BOOST_AUTO_TEST_CASE(MissingConfig)
 {
     BOOST_REQUIRE_EXCEPTION(Server(MISSING_CONFIG_PATH).run(AS_ROOT),
                             ConfigException,
                             WhatEquals("Could not load " + MISSING_CONFIG_PATH));
 }
 
-BOOST_AUTO_TEST_CASE(TerminateTest)
+BOOST_AUTO_TEST_CASE(Terminate)
 {
     Server s(TEST_CONFIG_PATH);
     s.terminate();
 }
 
-BOOST_AUTO_TEST_CASE(TerminateRunTest)
+BOOST_AUTO_TEST_CASE(TerminateRun)
 {
     Server s(TEST_CONFIG_PATH);
     s.terminate();
     s.run(AS_ROOT);
 }
 
-BOOST_AUTO_TEST_CASE(RunTerminateTest)
+BOOST_AUTO_TEST_CASE(RunTerminate)
 {
     Server s(TEST_CONFIG_PATH);
     std::future<void> runFuture = std::async(std::launch::async, [&] {s.run(AS_ROOT);});
index c711169..3aa38d1 100644 (file)
@@ -79,20 +79,20 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(ZoneAdminSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(ConstructorDestructorTest)
+BOOST_AUTO_TEST_CASE(ConstructorDestructor)
 {
     auto admin = create(TEST_CONFIG_PATH);
     admin.reset();
 }
 
-BOOST_AUTO_TEST_CASE(MissingConfigTest)
+BOOST_AUTO_TEST_CASE(MissingConfig)
 {
     BOOST_REQUIRE_EXCEPTION(create(MISSING_CONFIG_PATH),
                             ZoneOperationException,
                             WhatEquals("Could not create zone"));
 }
 
-BOOST_AUTO_TEST_CASE(StartTest)
+BOOST_AUTO_TEST_CASE(Start)
 {
     auto admin = create(TEST_CONFIG_PATH);
 
@@ -102,7 +102,7 @@ BOOST_AUTO_TEST_CASE(StartTest)
     BOOST_CHECK(admin->isRunning());
 }
 
-BOOST_AUTO_TEST_CASE(StartBuggyTest)
+BOOST_AUTO_TEST_CASE(StartBuggy)
 {
     auto admin = create(BUGGY_CONFIG_PATH);
     BOOST_REQUIRE_EXCEPTION(admin->start(),
@@ -110,7 +110,7 @@ BOOST_AUTO_TEST_CASE(StartBuggyTest)
                             WhatEquals("Could not start zone"));
 }
 
-BOOST_AUTO_TEST_CASE(StopShutdownTest)
+BOOST_AUTO_TEST_CASE(StopShutdown)
 {
     auto admin = create(TEST_CONFIG_PATH);
 
@@ -124,7 +124,7 @@ BOOST_AUTO_TEST_CASE(StopShutdownTest)
 }
 
 // This test needs to wait for a shutdown timer in stop() method. This takes 10s+.
-BOOST_AUTO_TEST_CASE(StopDestroyTest)
+BOOST_AUTO_TEST_CASE(StopDestroy)
 {
     auto admin = create(TEST_NO_SHUTDOWN_CONFIG_PATH);
 
@@ -137,7 +137,7 @@ BOOST_AUTO_TEST_CASE(StopDestroyTest)
     BOOST_CHECK(admin->isStopped());
 }
 
-BOOST_AUTO_TEST_CASE(SuspendResumeTest)
+BOOST_AUTO_TEST_CASE(SuspendResume)
 {
     auto admin = create(TEST_NO_SHUTDOWN_CONFIG_PATH);
 
@@ -156,7 +156,7 @@ BOOST_AUTO_TEST_CASE(SuspendResumeTest)
     BOOST_CHECK(admin->isRunning());
 }
 
-BOOST_AUTO_TEST_CASE(SchedulerLevelTest)
+BOOST_AUTO_TEST_CASE(ForegroundBackgroundSchedulerLevel)
 {
     auto admin = create(TEST_CONFIG_PATH);
 
index 2a72b87..5f2c63b 100644 (file)
@@ -133,12 +133,12 @@ private:
 
 BOOST_FIXTURE_TEST_SUITE(ZoneConnectionSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(ConstructorDestructorConnectTest)
+BOOST_AUTO_TEST_CASE(ConstructorDestructorConnect)
 {
     ZoneConnection(acquireAddress(), nullptr);
 }
 
-BOOST_AUTO_TEST_CASE(NotifyActiveZoneApiTest)
+BOOST_AUTO_TEST_CASE(NotifyActiveZoneApi)
 {
     Latch notifyCalled;
     ZoneConnection connection(acquireAddress(), nullptr);
@@ -161,7 +161,7 @@ BOOST_AUTO_TEST_CASE(NotifyActiveZoneApiTest)
     BOOST_CHECK(notifyCalled.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(SignalNotificationApiTest)
+BOOST_AUTO_TEST_CASE(SignalNotificationApi)
 {
     Latch signalEmitted;
     ZoneConnection connection(acquireAddress(), nullptr);
@@ -196,7 +196,7 @@ BOOST_AUTO_TEST_CASE(SignalNotificationApiTest)
     BOOST_CHECK(signalEmitted.wait(EVENT_TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(SignalDisplayOffApiTest)
+BOOST_AUTO_TEST_CASE(SignalDisplayOffApi)
 {
     Latch displayOffCalled;
     ZoneConnection connection(acquireAddress(), nullptr);
index 4109cb2..a79a260 100644 (file)
@@ -94,7 +94,7 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(ZoneProvisionSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(DestructorTest)
+BOOST_AUTO_TEST_CASE(Destructor)
 {
     const fs::path mountTarget = fs::path("/opt/usr/data/ut-from-host-provision");
     const fs::path mountSource = fs::path("/tmp/ut-provision");
@@ -122,7 +122,7 @@ BOOST_AUTO_TEST_CASE(DestructorTest)
     BOOST_CHECK(!fs::exists(mountSource));
 }
 
-BOOST_AUTO_TEST_CASE(FileTest)
+BOOST_AUTO_TEST_CASE(File)
 {
     //TODO: Test Fifo
     const fs::path regularFile = fs::path("/opt/usr/data/ut-regular-file");
@@ -165,7 +165,7 @@ BOOST_AUTO_TEST_CASE(FileTest)
     zoneProvision.stop();
 }
 
-BOOST_AUTO_TEST_CASE(MountTest)
+BOOST_AUTO_TEST_CASE(Mount)
 {
     //TODO: Test Fifo
     const fs::path mountTarget = fs::path("/opt/usr/data/ut-from-host-provision");
@@ -205,7 +205,7 @@ BOOST_AUTO_TEST_CASE(MountTest)
     zoneProvision.stop();
 }
 
-BOOST_AUTO_TEST_CASE(LinkTest)
+BOOST_AUTO_TEST_CASE(Link)
 {
     const fs::path linkFile = fs::path("/ut-from-host-file.txt");
 
@@ -234,7 +234,7 @@ BOOST_AUTO_TEST_CASE(LinkTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(DeclareFileTest)
+BOOST_AUTO_TEST_CASE(DeclareFile)
 {
     ZoneProvision zoneProvision = create({});
     zoneProvision.declareFile(1, "path", 0747, 0777);
@@ -252,7 +252,7 @@ BOOST_AUTO_TEST_CASE(DeclareFileTest)
     BOOST_CHECK_EQUAL(provision.mode, 0777);
 }
 
-BOOST_AUTO_TEST_CASE(DeclareMountTest)
+BOOST_AUTO_TEST_CASE(DeclareMount)
 {
     ZoneProvision zoneProvision = create({});
     zoneProvision.declareMount("/fake/path1", "/fake/path2", "tmpfs", 077, "fake");
@@ -274,7 +274,7 @@ BOOST_AUTO_TEST_CASE(DeclareMountTest)
     BOOST_CHECK_EQUAL(provision.data, "fake");
 }
 
-BOOST_AUTO_TEST_CASE(DeclareLinkTest)
+BOOST_AUTO_TEST_CASE(DeclareLink)
 {
     ZoneProvision zoneProvision = create({});
     zoneProvision.declareLink("/fake/path1", "/fake/path2");
@@ -290,7 +290,7 @@ BOOST_AUTO_TEST_CASE(DeclareLinkTest)
     BOOST_CHECK_EQUAL(provision.target, "/fake/path2");
 }
 
-BOOST_AUTO_TEST_CASE(ProvisionedAlreadyTest)
+BOOST_AUTO_TEST_CASE(ProvisionedAlready)
 {
     const fs::path dir = fs::path("/opt/usr/data/ut-from-host");
     const fs::path linkFile = fs::path("/ut-from-host-file.txt");
@@ -341,7 +341,7 @@ BOOST_AUTO_TEST_CASE(ProvisionedAlreadyTest)
     zoneProvision.stop();
 }
 
-BOOST_AUTO_TEST_CASE(ListTest)
+BOOST_AUTO_TEST_CASE(List)
 {
     std::vector<std::string> expected;
     ZoneProvision zoneProvision = create({});
@@ -369,7 +369,7 @@ BOOST_AUTO_TEST_CASE(ListTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(RemoveTest)
+BOOST_AUTO_TEST_CASE(Remove)
 {
     std::vector<std::string> expected;
     ZoneProvision zoneProvision = create({});
index 234dabb..722f32c 100644 (file)
@@ -117,27 +117,27 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(ZoneSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(ConstructorDestructorTest)
+BOOST_AUTO_TEST_CASE(ConstructorDestructor)
 {
     auto c = create(TEST_CONFIG_PATH);
     c.reset();
 }
 
-BOOST_AUTO_TEST_CASE(BuggyConfigTest)
+BOOST_AUTO_TEST_CASE(BuggyConfig)
 {
     BOOST_REQUIRE_EXCEPTION(create(BUGGY_CONFIG_PATH),
                             ZoneOperationException,
                             WhatEquals("Could not create zone"));
 }
 
-BOOST_AUTO_TEST_CASE(MissingConfigTest)
+BOOST_AUTO_TEST_CASE(MissingConfig)
 {
     BOOST_REQUIRE_EXCEPTION(create(MISSING_CONFIG_PATH),
                             ConfigException,
                             WhatEquals("Could not load " + MISSING_CONFIG_PATH));
 }
 
-BOOST_AUTO_TEST_CASE(StartStopTest)
+BOOST_AUTO_TEST_CASE(StartStop)
 {
     auto c = create(TEST_CONFIG_PATH);
     c->start();
@@ -145,7 +145,7 @@ BOOST_AUTO_TEST_CASE(StartStopTest)
     c->stop(true);
 }
 
-BOOST_AUTO_TEST_CASE(DbusConnectionTest)
+BOOST_AUTO_TEST_CASE(DbusConnection)
 {
     mRunGuard.create("/tmp/ut-run"); // the same path as in lxc template
 
@@ -157,7 +157,7 @@ BOOST_AUTO_TEST_CASE(DbusConnectionTest)
 
 // TODO: DbusReconnectionTest
 
-BOOST_AUTO_TEST_CASE(ListNetdevTest)
+BOOST_AUTO_TEST_CASE(ListNetdev)
 {
     typedef std::vector<std::string> NetdevList;
 
@@ -173,7 +173,7 @@ BOOST_AUTO_TEST_CASE(ListNetdevTest)
     BOOST_CHECK(hostNetdevs != netdevs);
 }
 
-BOOST_AUTO_TEST_CASE(CreateNetdevVethTest)
+BOOST_AUTO_TEST_CASE(CreateNetdevVeth)
 {
     typedef std::vector<std::string> NetdevList;
 
@@ -195,7 +195,7 @@ BOOST_AUTO_TEST_CASE(CreateNetdevVethTest)
                                   hostNetdevsThrow.begin(), hostNetdevsThrow.end());
 }
 
-BOOST_AUTO_TEST_CASE(CreateNetdevMacvlanTest)
+BOOST_AUTO_TEST_CASE(CreateNetdevMacvlan)
 {
     typedef std::vector<std::string> NetdevList;
 
index ea858e2..b140e6f 100644 (file)
@@ -481,28 +481,28 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(ZonesManagerSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(ConstructorDestructorTest)
+BOOST_AUTO_TEST_CASE(ConstructorDestructor)
 {
     std::unique_ptr<ZonesManager> cm;
     cm.reset(new ZonesManager(TEST_CONFIG_PATH));
     cm.reset();
 }
 
-BOOST_AUTO_TEST_CASE(MissingConfigTest)
+BOOST_AUTO_TEST_CASE(MissingConfig)
 {
     BOOST_REQUIRE_EXCEPTION(ZonesManager{MISSING_CONFIG_PATH},
                             ConfigException,
                             WhatEquals("Could not load " + MISSING_CONFIG_PATH));
 }
 
-BOOST_AUTO_TEST_CASE(CreateTest)
+BOOST_AUTO_TEST_CASE(Create)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", SIMPLE_TEMPLATE);
     cm.createZone("zone2", SIMPLE_TEMPLATE);
 }
 
-BOOST_AUTO_TEST_CASE(StartStopTest)
+BOOST_AUTO_TEST_CASE(StartStop)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", SIMPLE_TEMPLATE);
@@ -514,7 +514,7 @@ BOOST_AUTO_TEST_CASE(StartStopTest)
     BOOST_CHECK_EQUAL(cm.getRunningForegroundZoneId(), "");
 }
 
-BOOST_AUTO_TEST_CASE(DetachOnExitTest)
+BOOST_AUTO_TEST_CASE(DetachOnExit)
 {
     {
         ZonesManager cm(TEST_CONFIG_PATH);
@@ -531,7 +531,7 @@ BOOST_AUTO_TEST_CASE(DetachOnExitTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(FocusTest)
+BOOST_AUTO_TEST_CASE(Focus)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", SIMPLE_TEMPLATE);
@@ -548,7 +548,7 @@ BOOST_AUTO_TEST_CASE(FocusTest)
     BOOST_CHECK(cm.getRunningForegroundZoneId() == "zone3");
 }
 
-BOOST_AUTO_TEST_CASE(NotifyActiveZoneTest)
+BOOST_AUTO_TEST_CASE(NotifyActiveZone)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", DBUS_TEMPLATE);
@@ -618,7 +618,7 @@ BOOST_AUTO_TEST_CASE(NotifyActiveZoneTest)
     dbuses.clear();
 }
 
-BOOST_AUTO_TEST_CASE(DisplayOffTest)
+BOOST_AUTO_TEST_CASE(DisplayOff)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", DBUS_TEMPLATE);
@@ -655,7 +655,7 @@ BOOST_AUTO_TEST_CASE(DisplayOffTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(MoveFileTest)
+BOOST_AUTO_TEST_CASE(MoveFile)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", DBUS_TEMPLATE);
@@ -757,7 +757,7 @@ BOOST_AUTO_TEST_CASE(MoveFileTest)
     fs::remove_all(ZONE2PATH, ec);
 }
 
-BOOST_AUTO_TEST_CASE(AllowSwitchToDefaultTest)
+BOOST_AUTO_TEST_CASE(AllowSwitchToDefault)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", DBUS_TEMPLATE);
@@ -806,7 +806,7 @@ BOOST_AUTO_TEST_CASE(AllowSwitchToDefaultTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(ProxyCallTest)
+BOOST_AUTO_TEST_CASE(ProxyCall)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", DBUS_TEMPLATE);
@@ -895,7 +895,7 @@ namespace {
          "unix:path=/tmp/ut-run/zone3/dbus/system_bus_socket"}};
 } // namespace
 
-BOOST_AUTO_TEST_CASE(GetZoneDbusesTest)
+BOOST_AUTO_TEST_CASE(GetZoneDbuses)
 {
     DbusAccessory host(DbusAccessory::HOST_ID);
     ZonesManager cm(TEST_CONFIG_PATH);
@@ -910,7 +910,7 @@ BOOST_AUTO_TEST_CASE(GetZoneDbusesTest)
     BOOST_CHECK(EXPECTED_DBUSES_NONE == host.callMethodGetZoneDbuses());
 }
 
-BOOST_AUTO_TEST_CASE(GetZoneDbusesNoDbusTest)
+BOOST_AUTO_TEST_CASE(GetZoneDbusesNoDbus)
 {
     DbusAccessory host(DbusAccessory::HOST_ID);
     ZonesManager cm(TEST_CONFIG_PATH);
@@ -925,7 +925,7 @@ BOOST_AUTO_TEST_CASE(GetZoneDbusesNoDbusTest)
     BOOST_CHECK(EXPECTED_DBUSES_NONE == host.callMethodGetZoneDbuses());
 }
 
-BOOST_AUTO_TEST_CASE(ZoneDbusesSignalsTest)
+BOOST_AUTO_TEST_CASE(ZoneDbusesSignals)
 {
     Latch signalLatch;
     DbusAccessory::Dbuses collectedDbuses;
@@ -975,7 +975,7 @@ BOOST_AUTO_TEST_CASE(ZoneDbusesSignalsTest)
 }
 
 
-BOOST_AUTO_TEST_CASE(GetZoneIdsTest)
+BOOST_AUTO_TEST_CASE(GetZoneIds)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", SIMPLE_TEMPLATE);
@@ -992,7 +992,7 @@ BOOST_AUTO_TEST_CASE(GetZoneIdsTest)
     BOOST_CHECK(returnedIds == zoneIds);// order should be preserved
 }
 
-BOOST_AUTO_TEST_CASE(GetActiveZoneIdTest)
+BOOST_AUTO_TEST_CASE(GetActiveZoneId)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", SIMPLE_TEMPLATE);
@@ -1015,7 +1015,7 @@ BOOST_AUTO_TEST_CASE(GetActiveZoneIdTest)
     BOOST_CHECK(dbus.callMethodGetActiveZoneId() == "");
 }
 
-BOOST_AUTO_TEST_CASE(SetActiveZoneTest)
+BOOST_AUTO_TEST_CASE(SetActiveZone)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", SIMPLE_TEMPLATE);
@@ -1044,7 +1044,7 @@ BOOST_AUTO_TEST_CASE(SetActiveZoneTest)
                             WhatEquals("Could not activate stopped or paused zone"));
 }
 
-BOOST_AUTO_TEST_CASE(CreateDestroyZoneTest)
+BOOST_AUTO_TEST_CASE(CreateDestroyZone)
 {
     const std::string zone1 = "test1";
     const std::string zone2 = "test2";
@@ -1096,7 +1096,7 @@ BOOST_AUTO_TEST_CASE(CreateDestroyZoneTest)
     BOOST_CHECK_EQUAL(cm.getRunningForegroundZoneId(), "");
 }
 
-BOOST_AUTO_TEST_CASE(CreateDestroyZonePersistenceTest)
+BOOST_AUTO_TEST_CASE(CreateDestroyZonePersistence)
 {
     const std::string zone = "test1";
 
@@ -1140,7 +1140,7 @@ BOOST_AUTO_TEST_CASE(CreateDestroyZonePersistenceTest)
     BOOST_CHECK(getZoneIds().empty());
 }
 
-BOOST_AUTO_TEST_CASE(ZoneStatePersistenceTest)
+BOOST_AUTO_TEST_CASE(ZoneStatePersistence)
 {
     const std::string zone1 = "zone1";
     const std::string zone2 = "zone2";
@@ -1211,7 +1211,7 @@ BOOST_AUTO_TEST_CASE(ZoneStatePersistenceTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(StartShutdownZoneTest)
+BOOST_AUTO_TEST_CASE(StartShutdownZone)
 {
     const std::string zone1 = "zone1";
     const std::string zone2 = "zone2";
@@ -1251,7 +1251,7 @@ BOOST_AUTO_TEST_CASE(StartShutdownZoneTest)
     BOOST_CHECK_EQUAL(cm.getRunningForegroundZoneId(), "");
 }
 
-BOOST_AUTO_TEST_CASE(LockUnlockZoneTest)
+BOOST_AUTO_TEST_CASE(LockUnlockZone)
 {
     ZonesManager cm(TEST_CONFIG_PATH);
     cm.createZone("zone1", DBUS_TEMPLATE);
index 89787d5..524c7d5 100644 (file)
@@ -39,14 +39,14 @@ using namespace vasum::utils;
 
 const int unsigned TIMEOUT = 1000;
 
-BOOST_AUTO_TEST_CASE(EmptyTest)
+BOOST_AUTO_TEST_CASE(Empty)
 {
     CallbackGuard guard;
     BOOST_CHECK_EQUAL(0, guard.getTrackersCount());
     BOOST_CHECK(guard.waitForTrackers(TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(SimpleTest)
+BOOST_AUTO_TEST_CASE(Simple)
 {
     CallbackGuard guard;
     guard.spawn();
@@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE(SimpleTest)
     BOOST_CHECK(guard.waitForTrackers(TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(ThreadTest)
+BOOST_AUTO_TEST_CASE(Thread)
 {
     Latch trackerCreated;
     Latch trackerCanBeDestroyed;
index 702470f..04832db 100644 (file)
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_SUITE(CountingMapSuite)
 
 using namespace vasum::utils;
 
-BOOST_AUTO_TEST_CASE(CountingTest)
+BOOST_AUTO_TEST_CASE(Counting)
 {
     CountingMap<std::string> map;
 
index b2defba..cbbe14b 100644 (file)
@@ -72,7 +72,7 @@ struct Fixture {
 
 BOOST_FIXTURE_TEST_SUITE(UtilsFSSuite, Fixture)
 
-BOOST_AUTO_TEST_CASE(ReadFileContentTest)
+BOOST_AUTO_TEST_CASE(ReadFileContent)
 {
     BOOST_CHECK_EQUAL(REFERENCE_FILE_CONTENT, readFileContent(REFERENCE_FILE_PATH));
     BOOST_CHECK_EXCEPTION(readFileContent(BUGGY_FILE_PATH),
@@ -80,20 +80,20 @@ BOOST_AUTO_TEST_CASE(ReadFileContentTest)
                           WhatEquals("Read failed"));
 }
 
-BOOST_AUTO_TEST_CASE(SaveFileContentTest)
+BOOST_AUTO_TEST_CASE(SaveFileContent)
 {
     BOOST_REQUIRE(saveFileContent(FILE_PATH, REFERENCE_FILE_CONTENT));
     BOOST_CHECK_EQUAL(REFERENCE_FILE_CONTENT, readFileContent(FILE_PATH));
 }
 
-BOOST_AUTO_TEST_CASE(RemoveFileTest)
+BOOST_AUTO_TEST_CASE(RemoveFile)
 {
     BOOST_REQUIRE(saveFileContent(FILE_PATH, REFERENCE_FILE_CONTENT));
     BOOST_REQUIRE(removeFile(FILE_PATH));
     BOOST_REQUIRE(!boost::filesystem::exists(FILE_PATH));
 }
 
-BOOST_AUTO_TEST_CASE(MountPointTest)
+BOOST_AUTO_TEST_CASE(MountPoint)
 {
     bool result;
     namespace fs = boost::filesystem;
@@ -115,7 +115,7 @@ BOOST_AUTO_TEST_CASE(MountPointTest)
     BOOST_REQUIRE(fs::remove(MOUNT_POINT_1, ec));
 }
 
-BOOST_AUTO_TEST_CASE(MoveFileTest)
+BOOST_AUTO_TEST_CASE(MoveFile)
 {
     namespace fs = boost::filesystem;
     boost::system::error_code ec;
@@ -150,7 +150,7 @@ BOOST_AUTO_TEST_CASE(MoveFileTest)
     BOOST_REQUIRE(fs::remove(MOUNT_POINT_2, ec));
 }
 
-BOOST_AUTO_TEST_CASE(CopyDirContentsTest)
+BOOST_AUTO_TEST_CASE(CopyDirContents)
 {
     namespace fs = boost::filesystem;
     std::string src, src_inner, src_inner2, dst, dst_inner, dst_inner2;
index 7c5e318..467fbfb 100644 (file)
@@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(GlibLoopTest)
     ScopedGlibLoop loop;
 }
 
-BOOST_AUTO_TEST_CASE(GlibTimerEventTest)
+BOOST_AUTO_TEST_CASE(GlibTimerEvent)
 {
     ScopedGlibLoop loop;
     std::atomic_uint counter(0);
index bb2b11f..e14da13 100644 (file)
@@ -34,7 +34,7 @@ BOOST_AUTO_TEST_SUITE(UtilsPathsSuite)
 
 using namespace vasum::utils;
 
-BOOST_AUTO_TEST_CASE(CreateFilePathTest)
+BOOST_AUTO_TEST_CASE(CreateFilePath)
 {
     BOOST_CHECK_EQUAL("", createFilePath());
 
@@ -60,7 +60,7 @@ BOOST_AUTO_TEST_CASE(CreateFilePathTest)
     BOOST_CHECK_EQUAL("a/b/.txt", createFilePath("a", "/b/", "/.txt"));
 }
 
-BOOST_AUTO_TEST_CASE(DirNameTest)
+BOOST_AUTO_TEST_CASE(DirName)
 {
     BOOST_CHECK_EQUAL(".", dirName(""));
     BOOST_CHECK_EQUAL(".", dirName("."));
index 7dbba57..463c07d 100644 (file)
@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_SUITE(SameThreadGuardSuite)
 
 using namespace vasum::utils;
 
-BOOST_AUTO_TEST_CASE(SimpleTest)
+BOOST_AUTO_TEST_CASE(Simple)
 {
     SameThreadGuard guard;
     BOOST_CHECK(guard.check());
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(SimpleTest)
     BOOST_CHECK(guard.check());
 }
 
-BOOST_AUTO_TEST_CASE(ThreadTest)
+BOOST_AUTO_TEST_CASE(Thread)
 {
     SameThreadGuard guard;
 
index 711c8e6..2b09967 100644 (file)
@@ -58,7 +58,7 @@ namespace
     };
 } // namespace
 
-BOOST_AUTO_TEST_CASE(SimpleTypeTest)
+BOOST_AUTO_TEST_CASE(SimpleValue)
 {
     ValueLatch<int> testLatch;
 
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(SimpleTypeTest)
     BOOST_REQUIRE_EQUAL(testLatch.get(TIMEOUT), 3);
 }
 
-BOOST_AUTO_TEST_CASE(ComplexTypeTest)
+BOOST_AUTO_TEST_CASE(ComplexValue)
 {
     ValueLatch<ComplexType> testLatch;
 
@@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(ComplexTypeTest)
     BOOST_REQUIRE_EQUAL(test.str, TEST_STRING);
 }
 
-BOOST_AUTO_TEST_CASE(ComplexMovableTypeTest)
+BOOST_AUTO_TEST_CASE(ComplexMovableValue)
 {
     ValueLatch<ComplexMovableType> testLatch;
 
@@ -101,7 +101,7 @@ BOOST_AUTO_TEST_CASE(ComplexMovableTypeTest)
     BOOST_REQUIRE_EQUAL(test.value.str, TEST_STRING);
 }
 
-BOOST_AUTO_TEST_CASE(TimeoutTest)
+BOOST_AUTO_TEST_CASE(Timeout)
 {
     ValueLatch<int> testLatch;
 
@@ -110,7 +110,7 @@ BOOST_AUTO_TEST_CASE(TimeoutTest)
                             WhatEquals("Timeout occured"));
 }
 
-BOOST_AUTO_TEST_CASE(MultipleSetTest)
+BOOST_AUTO_TEST_CASE(MultipleSet)
 {
     ValueLatch<int> testLatch;
 
@@ -120,7 +120,7 @@ BOOST_AUTO_TEST_CASE(MultipleSetTest)
                             WhatEquals("Cannot set value multiple times"));
 }
 
-BOOST_AUTO_TEST_CASE(MultipleGetTest)
+BOOST_AUTO_TEST_CASE(MultipleGet)
 {
     ValueLatch<int> testLatch;
 
index 91fa6b8..da2a96d 100644 (file)
@@ -39,12 +39,12 @@ using namespace vasum::utils;
 
 const int unsigned TIMEOUT = 1000;
 
-BOOST_AUTO_TEST_CASE(NoTasksTest)
+BOOST_AUTO_TEST_CASE(NoTasks)
 {
     Worker::Pointer worker = Worker::create();
 }
 
-BOOST_AUTO_TEST_CASE(NoTasks2Test)
+BOOST_AUTO_TEST_CASE(NoTasksWithSubWorkers)
 {
     Worker::Pointer worker = Worker::create();
     Worker::Pointer sub1 = worker->createSubWorker();
@@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE(NoTasks2Test)
     worker.reset();
 }
 
-BOOST_AUTO_TEST_CASE(SimpleTest)
+BOOST_AUTO_TEST_CASE(Simple)
 {
     Latch done;
 
@@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE(SimpleTest)
     BOOST_CHECK(done.wait(TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(QueueTest)
+BOOST_AUTO_TEST_CASE(Queue)
 {
     std::mutex mutex;
     std::string result;
@@ -88,7 +88,7 @@ BOOST_AUTO_TEST_CASE(QueueTest)
     BOOST_CHECK_EQUAL("0123456789", result);
 }
 
-BOOST_AUTO_TEST_CASE(ThreadResumeTest)
+BOOST_AUTO_TEST_CASE(ThreadResume)
 {
     Latch done;
 
@@ -112,7 +112,7 @@ BOOST_AUTO_TEST_CASE(ThreadResumeTest)
     BOOST_CHECK(done.wait(TIMEOUT));
 }
 
-BOOST_AUTO_TEST_CASE(SubWorkerTest)
+BOOST_AUTO_TEST_CASE(SubWorker)
 {
     std::mutex mutex;
     std::string result;
@@ -154,7 +154,7 @@ BOOST_AUTO_TEST_CASE(SubWorkerTest)
     }
 }
 
-BOOST_AUTO_TEST_CASE(NoCopyTest)
+BOOST_AUTO_TEST_CASE(NoCopy)
 {
     typedef std::atomic_int Counter;