Move Summary collector to test framework 96/28696/12
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Mon, 13 Oct 2014 16:39:53 +0000 (18:39 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Mon, 1 Dec 2014 17:02:58 +0000 (18:02 +0100)
Change-Id: Ief5a3b837382651bd030642c262d3c69c408a4bb

19 files changed:
README
tests/common/CMakeLists.txt
tests/common/summary_collector.cpp [deleted file]
tests/common/summary_collector.h [deleted file]
tests/cynara-tests/cynara-test.cpp
tests/framework/config.cmake
tests/framework/include/dpl/test/test_results_collector_summary.h [new file with mode: 0644]
tests/framework/src/test_results_collector.cpp
tests/framework/src/test_results_collector_summary.cpp [new file with mode: 0644]
tests/libprivilege-control-tests/libprivilege-control-test.cpp
tests/libsmack-tests/libsmack-test.cpp
tests/security-manager-tests/security_manager_tests.cpp
tests/security-server-tests/security_server_measurer_API_speed.cpp
tests/security-server-tests/security_server_tests_client_smack.cpp
tests/security-server-tests/security_server_tests_password.cpp
tests/security-server-tests/security_server_tests_privilege.cpp
tests/security-server-tests/security_server_tests_stress.cpp
tests/security-server-tests/server.cpp
tests/smack-dbus-tests/smack_dbus_tests.cpp

diff --git a/README b/README
index 9caea4781eb2601cd2676f4a30fc8e7a1717138e..c92cbb28fe30e2ca30696ad58cb2683d979eed70 100644 (file)
--- a/README
+++ b/README
@@ -153,8 +153,8 @@ Collectors are classes which collect test results. Each class does it differentl
 Collectors can be registered by --output parameter (see HOW TO RUN section) but
 there is also another collector created to write summary.
 
-tests-common
-  summary_collector.h
+dpl-test-framework
+  test_results_collector_summary.h
     SummaryCollector
           Collector writing tests summary. Call SummaryCollector::Register() to
           register it
index 0fa8305436e7a2c48579dd6b0ab2e22a9887e895..c595bf72ff38d23a707a8d0f3db4e8c518165277 100644 (file)
@@ -17,7 +17,6 @@ SET(COMMON_TARGET_TEST_SOURCES
     ${PROJECT_SOURCE_DIR}/tests/common/tests_common.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/access_provider.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/smack_access.cpp
-    ${PROJECT_SOURCE_DIR}/tests/common/summary_collector.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/dbus_access.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/memory.cpp
     ${PROJECT_SOURCE_DIR}/tests/common/db_sqlite.cpp
diff --git a/tests/common/summary_collector.cpp b/tests/common/summary_collector.cpp
deleted file mode 100644 (file)
index 3af8157..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-
-/*
- * @file        summary_collector.cpp
- * @author      Michal Witanowski (m.witanowski@samsung.com)
- * @version     1.0
- * @brief       Implementation of custom test results collector needed by summary view.
- */
-
-#include <summary_collector.h>
-#include <fstream>
-
-namespace {
-    const char* summaryFileName = "/tmp/security-tests-summary-file";
-    const char* summaryCollectorName =  "summary";
-};
-
-SummaryCollector::SummaryCollector()
-{
-    Start();
-}
-
-
-// Overrides DPL::Test::TestResultsCollectorBase::Start() virtual method.
-void SummaryCollector::Start()
-{
-    m_total = m_succeeded = m_failed = m_ignored = 0;
-}
-
-// append results to the file
-void SummaryCollector::Finish()
-{
-    std::ofstream outputFile;
-    outputFile.open(summaryFileName, std::ofstream::out | std::ofstream::app);
-    if (!outputFile)
-        return; //failed to open file
-
-    outputFile << m_total << ' '
-               << m_succeeded << ' '
-               << m_failed << ' '
-               << m_ignored << std::endl;
-    outputFile.close();
-}
-
-void SummaryCollector::CollectResult(const std::string& /*id*/,
-                                      const std::string& /*description*/,
-                                      const FailStatus status,
-                                      const std::string& /*reason = ""*/,
-                                      const bool& isPerformanceTest,
-                                      const std::chrono::system_clock::duration& performanceTime,
-                                      const std::chrono::system_clock::duration& performanceMaxTime)
-{
-    (void)isPerformanceTest;
-    (void)performanceTime;
-    (void)performanceMaxTime;
-    switch (status) {
-        case FailStatus::IGNORED: ++m_ignored; break;
-        case FailStatus::FAILED: ++m_failed; break;
-        case FailStatus::NONE: ++m_succeeded; break;
-    };
-    ++m_total;
-}
-
-void SummaryCollector::CollectResult(const std::string& /*id*/,
-                                      const std::string& /*description*/,
-                                      const FailStatus status,
-                                      const std::string& /*reason = ""*/)
-{
-    switch (status) {
-        case FailStatus::IGNORED: ++m_ignored; break;
-        case FailStatus::FAILED: ++m_failed; break;
-        case FailStatus::NONE: ++m_succeeded; break;
-    };
-    ++m_total;
-}
-
-DPL::Test::TestResultsCollectorBase* SummaryCollector::Constructor()
-{
-    return new SummaryCollector();
-}
-
-void SummaryCollector::Register()
-{
-    //register custom results collector
-    DPL::Test::TestResultsCollectorBase::RegisterCollectorConstructor(summaryCollectorName,
-        &SummaryCollector::Constructor);
-}
diff --git a/tests/common/summary_collector.h b/tests/common/summary_collector.h
deleted file mode 100644 (file)
index f04b2c2..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-
-/*
- * @file        summary_collector.h
- * @author      Michal Witanowski (m.witanowski@samsung.com)
- * @version     1.0
- * @brief       Implementation of custom test results collector needed by summary view.
- */
-
-#ifndef _RAW_RESULTS_COLLECTOR_H_
-#define _RAW_RESULTS_COLLECTOR_H_
-
-#include <dpl/test/test_results_collector.h>
-#include <chrono>
-
-/*
- * Custom test runner results collector. The results (total test cases, failed, etc.) are
- * appended to a file, wihich is parsed after execution of all tests in oreder to
- * display summary view.
- */
-class SummaryCollector : public DPL::Test::TestResultsCollectorBase
-{
-    unsigned int m_total, m_succeeded, m_failed, m_ignored; // counters
-
-    SummaryCollector();
-    void Start();
-    void Finish();
-    void CollectResult(const std::string& /*id*/,
-                       const std::string& /*description*/,
-                       const FailStatus status,
-                       const std::string& /*reason = ""*/);
-    void CollectResult(const std::string& /*id*/,
-                       const std::string& /*description*/,
-                       const FailStatus status,
-                       const std::string& /*reason = ""*/,
-                       const bool& isPerformanceTest = false,
-                       const std::chrono::system_clock::duration&
-                               performanceTime = std::chrono::microseconds::zero(),
-                       const std::chrono::system_clock::duration&
-                               performanceMaxTime = std::chrono::microseconds::zero());
-
-public:
-    static TestResultsCollectorBase* Constructor();
-    static void Register();
-};
-
-#endif
index af98c7754fa81080ea578a89fe4eda002530e0fc..2ff40841c564e433e88479659f0fe97f4ac16f5a 100644 (file)
  */
 
 #include <dpl/test/test_runner.h>
-#include <summary_collector.h>
 
 int main (int argc, char *argv[])
 {
-    SummaryCollector::Register();
     int status = DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
     return status;
 }
index 23352984fd71128213482d597a0615ce771ca1cc..a2cb0ffe83215982dafd5aeab8016f5fc612ec94 100644 (file)
@@ -36,6 +36,7 @@ SET(DPL_FRAMEWORK_TEST_SOURCES
     ${PROJECT_SOURCE_DIR}/tests/framework/src/test_results_collector_commons.cpp
     ${PROJECT_SOURCE_DIR}/tests/framework/src/test_results_collector_console.cpp
     ${PROJECT_SOURCE_DIR}/tests/framework/src/test_results_collector_html.cpp
+    ${PROJECT_SOURCE_DIR}/tests/framework/src/test_results_collector_summary.cpp
     ${PROJECT_SOURCE_DIR}/tests/framework/src/test_results_collector_xml.cpp
     ${PROJECT_SOURCE_DIR}/tests/framework/src/test_runner_child.cpp
     ${PROJECT_SOURCE_DIR}/tests/framework/src/test_runner.cpp
diff --git a/tests/framework/include/dpl/test/test_results_collector_summary.h b/tests/framework/include/dpl/test/test_results_collector_summary.h
new file mode 100644 (file)
index 0000000..617c17f
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+/*
+ * @file        test_results_collector_summary.h
+ * @author      Marcin Niesluchowski (m.niesluchow@samsung.com)
+ * @author      Michal Witanowski (m.witanowski@samsung.com)
+ * @version     1.0
+ * @brief       Header file containing SummaryCollector class declaration.
+ */
+
+#ifndef DPL_TEST_RESULTS_COLLECTOR_SUMMARY_H
+#define DPL_TEST_RESULTS_COLLECTOR_SUMMARY_H
+
+#include <dpl/test/test_results_collector.h>
+
+namespace DPL {
+namespace Test {
+
+/*
+ * Custom test runner results collector. The results (total test cases, failed, etc.) are
+ * appended to a file, wihich is parsed after execution of all tests in oreder to
+ * display summary view.
+ */
+class SummaryCollector : public TestResultsCollectorBase
+{
+    unsigned int m_total, m_succeeded, m_failed, m_ignored; // counters
+
+    SummaryCollector();
+    void Start();
+    void Finish();
+    void CollectResult(const std::string& /*id*/,
+                       const std::string& /*description*/,
+                       const FailStatus status,
+                       const std::string& /*reason = ""*/);
+    void CollectResult(const std::string& /*id*/,
+                       const std::string& /*description*/,
+                       const FailStatus status,
+                       const std::string& /*reason = ""*/,
+                       const bool& isPerformanceTest = false,
+                       const std::chrono::system_clock::duration& performanceTime
+                           = std::chrono::microseconds::zero(),
+                       const std::chrono::system_clock::duration& performanceMaxTime
+                           = std::chrono::microseconds::zero());
+
+public:
+    static TestResultsCollectorBase* Constructor();
+};
+
+} // namespace Test
+} // namespace DPL
+
+#endif // DPL_TEST_RESULTS_COLLECTOR_SUMMARY_H
index 48cc93b66ec3214d68affd7bcb01fba6daf87516..a0eb74f07849f6248319a832863e8f96a3330a71 100644 (file)
@@ -23,6 +23,7 @@
 #include <dpl/test/test_results_collector.h>
 #include <dpl/test/test_results_collector_console.h>
 #include <dpl/test/test_results_collector_html.h>
+#include <dpl/test/test_results_collector_summary.h>
 #include <dpl/test/test_results_collector_xml.h>
 
 namespace DPL {
@@ -73,6 +74,9 @@ int RegisterCollectorConstructors()
     TestResultsCollectorBase::RegisterCollectorConstructor(
         "html",
         &HtmlCollector::Constructor);
+    TestResultsCollectorBase::RegisterCollectorConstructor(
+        "summary",
+        &SummaryCollector::Constructor);
     TestResultsCollectorBase::RegisterCollectorConstructor(
         "xml",
         &XmlCollector::Constructor);
diff --git a/tests/framework/src/test_results_collector_summary.cpp b/tests/framework/src/test_results_collector_summary.cpp
new file mode 100644 (file)
index 0000000..e478112
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *    Licensed under the Apache License, Version 2.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
+ */
+/*
+ * @file        test_results_collector_summary.cpp
+ * @author      Marcin Niesluchowski (m.niesluchow@samsung.com)
+ * @author      Michal Witanowski (m.witanowski@samsung.com)
+ * @version     1.0
+ * @brief       Source file containing SummaryCollector class definition.
+ */
+
+#include <fstream>
+
+#include "dpl/test/test_results_collector_summary.h"
+
+namespace DPL {
+namespace Test {
+
+namespace {
+
+    const char* summaryFileName = "/tmp/security-tests-summary-file";
+
+}
+
+SummaryCollector::SummaryCollector()
+{
+    Start();
+}
+
+
+// Overrides TestResultsCollectorBase::Start() virtual method.
+void SummaryCollector::Start()
+{
+    m_total = m_succeeded = m_failed = m_ignored = 0;
+}
+
+// append results to the file
+void SummaryCollector::Finish()
+{
+    std::ofstream outputFile;
+    outputFile.open(summaryFileName, std::ofstream::out | std::ofstream::app);
+    if (!outputFile)
+        return; //failed to open file
+
+    outputFile << m_total << ' '
+               << m_succeeded << ' '
+               << m_failed << ' '
+               << m_ignored << std::endl;
+    outputFile.close();
+}
+
+void SummaryCollector::CollectResult(const std::string& /*id*/,
+                                     const std::string& /*description*/,
+                                     const FailStatus status,
+                                     const std::string& /*reason = ""*/,
+                                     const bool& isPerformanceTest,
+                                     const std::chrono::system_clock::duration& performanceTime,
+                                     const std::chrono::system_clock::duration& performanceMaxTime)
+{
+    (void)isPerformanceTest;
+    (void)performanceTime;
+    (void)performanceMaxTime;
+    switch (status) {
+        case FailStatus::IGNORED: ++m_ignored; break;
+        case FailStatus::FAILED: ++m_failed; break;
+        case FailStatus::NONE: ++m_succeeded; break;
+    };
+    ++m_total;
+}
+
+void SummaryCollector::CollectResult(const std::string& /*id*/,
+                                     const std::string& /*description*/,
+                                     const FailStatus status,
+                                     const std::string& /*reason = ""*/)
+{
+    switch (status) {
+        case FailStatus::IGNORED: ++m_ignored; break;
+        case FailStatus::FAILED: ++m_failed; break;
+        case FailStatus::NONE: ++m_succeeded; break;
+    };
+    ++m_total;
+}
+
+TestResultsCollectorBase* SummaryCollector::Constructor()
+{
+    return new SummaryCollector();
+}
+
+} // namespace Test
+} // namespace DPL
index 57e978013273409d013c0c24780a05bf8f93da50..dbec70c8a84b0ef0134e99e043d2968edb9d6015 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
 
 #include <dpl/test/test_runner.h>
 #include <dpl/log/log.h>
-#include <summary_collector.h>
 
 int main (int argc, char *argv[])
 {
     LogInfo("Starting libprivilege-control tests");
 
-    SummaryCollector::Register();
     int status = DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
     return status;
 }
index 556e2a1679597f4ca6b48acafd03e96f2570a9ed..ccbb00e8d1073f620aa532cdb2a2d09019e1db10 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *    Licensed under the Apache License, Version 2.0 (the "License");
  *    you may not use this file except in compliance with the License.
  * @brief       libsmack test runer
  */
 #include <dpl/test/test_runner.h>
-#include <summary_collector.h>
 
 int main (int argc, char *argv[])
 {
-    SummaryCollector::Register();
     int status = DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
     return status;
 }
index ab6c0cd221c3b85625b541cf5ed58d59bb8c5fdd..fe90f8e5b9dd1ac824f2ccc4b118aa2c50a0f06d 100644 (file)
@@ -2,7 +2,6 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <memory.h>
-#include <summary_collector.h>
 #include <string>
 #include <unordered_set>
 #include <sys/capability.h>
@@ -619,6 +618,5 @@ RUNNER_CHILD_TEST(security_manager_05_drop_process_capabilities)
 
 int main(int argc, char *argv[])
 {
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
index f9da513218e6399a11aa497108202f2ae5771d88..213f9be2ffb9884d6bb04794625790ee3f2578d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Contact: Bumjin Im <bj.im@samsung.com>
  *
@@ -49,7 +49,6 @@
 #include <unistd.h>
 #include <memory.h>
 #include "security_server_mockup.h"
-#include <summary_collector.h>
 #include <smack_access.h>
 
 IMPLEMENT_SAFE_SINGLETON(DPL::Log::LogSystem);
@@ -723,7 +722,6 @@ RUNNER_TEST(m170_security_server_check_privilege_by_pid) {
 
 int main(int argc, char *argv[])
 {
-    SummaryCollector::Register();
     securityClientEnableLogSystem();
     DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
     return 0;
index 194584e98d7b80d001fd08588c21ce4f8c531838..fa7c13ba5a3bd4bf6e2a09b35d207aa0a7fd6af4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  */
 /*
  * @file    security_server_tests_client_smack.cpp
@@ -31,7 +31,6 @@
 #include <security-server.h>
 #include <access_provider.h>
 #include "tests_common.h"
-#include <summary_collector.h>
 #include <memory.h>
 
 #define PROPER_COOKIE_SIZE 20
@@ -545,6 +544,5 @@ RUNNER_TEST_NOSMACK(tc18_security_server_get_smacklabel_cookie_nosmack) {
 
 int main(int argc, char *argv[])
 {
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
index d914e5d4107a9fba64e5faf61c86b1dd9139b168..b9f058422fd11719503da3428375c65db5cba215 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  */
 /*
  * @file    security_server_tests_password.cpp
@@ -33,7 +33,6 @@
 #include <dlog.h>
 #include "security_server_clean_env.h"
 #include "security_server_tests_common.h"
-#include <summary_collector.h>
 
 
 // the maximum time (in seconds) passwords can expire in
@@ -1523,6 +1522,5 @@ RUNNER_TEST(tc53_security_server_is_pwd_valid)
 
 int main(int argc, char *argv[])
 {
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
index 4b0ac72a525303c0784bbefdb07cf048e22095e3..c7e698ff0856448a250fc7cb9beecfdea538a26c 100644 (file)
@@ -1,7 +1,5 @@
 #include <dpl/test/test_runner.h>
 
-#include <summary_collector.h>
-
 #include <libprivilege-control_test_common.h>
 
 #include <security-server.h>
@@ -123,6 +121,5 @@ RUNNER_TEST(sstp_01_security_server_app_has_privilege)
 
 int main(int argc, char *argv[])
 {
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
index 9b74a625d67df06004ea1f9ba2776edcba90b701..b8f7e128f1f811b82e2b32e90f99369df43f753a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  */
 /*
  * @file    security_server_tests_stress.cpp
@@ -12,7 +12,6 @@
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_multiprocess.h>
 #include <tests_common.h>
-#include <summary_collector.h>
 #include <iostream>
 #include <sys/smack.h>
 #include <cstddef>
@@ -185,7 +184,6 @@ RUNNER_CHILD_TEST_NOSMACK(tc_stress_cookie_api_no_smack)
 
 int main (int argc, char *argv[])
 {
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
 
index d7929ebdbbab4a7f4f990b9c6d1074214075a033..e7d94b73be9a700dbd0267ce5675e4fc9f3efa3f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  */
 /*
  * @file    security_server_tests_server.cpp
@@ -33,7 +33,6 @@
 #include "tests_common.h"
 #include <smack_access.h>
 #include <access_provider.h>
-#include <summary_collector.h>
 
 const char *TEST03_SUBJECT = "subject_0f09f7cc";
 const char *TEST04_SUBJECT = "subject_57dfbfc5";
@@ -429,6 +428,5 @@ int main(int argc, char *argv[]) {
         printf("Error: %s must be executed by root\n", argv[0]);
         exit(1);
     }
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }
index 080e5b092d6b57d8ee896ad8ae7c11ecf462852a..233994e863e3afa9cd4420cb506a98b9a677c9eb 100644 (file)
@@ -4,7 +4,6 @@
 #include <dpl/test/test_runner.h>
 #include <dpl/test/test_runner_multiprocess.h>
 #include <dbus/dbus.h>
-#include <summary_collector.h>
 #include "tests_common.h"
 
 #define DBUS_SERVER_NAME                        "test.method.server"
@@ -302,6 +301,5 @@ RUNNER_MULTIPROCESS_TEST_NOSMACK(tc01_smack_context_from_DBus_nosmack)
 
 int main(int argc, char *argv[])
 {
-    SummaryCollector::Register();
     return DPL::Test::TestRunnerSingleton::Instance().ExecTestRunner(argc, argv);
 }