[IE TESTS] Move main.cpp to shared lib from plugin functional tests (#3157)
authorIrina Efode <irina.efode@intel.com>
Tue, 17 Nov 2020 07:11:17 +0000 (10:11 +0300)
committerGitHub <noreply@github.com>
Tue, 17 Nov 2020 07:11:17 +0000 (10:11 +0300)
inference-engine/tests/functional/plugin/gna/main.cpp [deleted file]
inference-engine/tests/functional/plugin/gpu/main.cpp [deleted file]
inference-engine/tests/functional/plugin/myriad/main.cpp [deleted file]
inference-engine/tests/functional/plugin/shared/src/main.cpp [moved from inference-engine/tests/functional/plugin/cpu/main.cpp with 100% similarity]

diff --git a/inference-engine/tests/functional/plugin/gna/main.cpp b/inference-engine/tests/functional/plugin/gna/main.cpp
deleted file mode 100644 (file)
index 6b0bcf6..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (C) 2020 Intel Corporation
-// SPDX-License-Identifier: Apache-2.0
-//
-
-#include "gtest/gtest.h"
-
-#include "functional_test_utils/layer_test_utils.hpp"
-
-int main(int argc, char* argv[]) {
-    FuncTestUtils::SkipTestsConfig::disable_tests_skipping = false;
-    bool print_custom_help = false;
-    for (int i = 0; i < argc; ++i) {
-        if (std::string(argv[i]) == "--disable_tests_skipping") {
-            FuncTestUtils::SkipTestsConfig::disable_tests_skipping = true;
-        }
-        if (std::string(argv[i]) == "--help") {
-            print_custom_help = true;
-        }
-    }
-    if (print_custom_help) {
-        std::cout << "Custom command line argument:" << std::endl;
-        std::cout << "  --disable_tests_skipping" << std::endl;
-        std::cout << "       Ignore tests skipping rules and run all the test" << std::endl;
-        std::cout << "       (except those which are skipped with DISABLED prefix)" << std::endl;
-        std::cout << std::endl;
-    }
-    ::testing::InitGoogleTest(&argc, argv);
-    ::testing::AddGlobalTestEnvironment(new LayerTestsUtils::TestEnvironment);
-    auto retcode = RUN_ALL_TESTS();
-
-    return retcode;
-}
\ No newline at end of file
diff --git a/inference-engine/tests/functional/plugin/gpu/main.cpp b/inference-engine/tests/functional/plugin/gpu/main.cpp
deleted file mode 100644 (file)
index 6b0bcf6..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (C) 2020 Intel Corporation
-// SPDX-License-Identifier: Apache-2.0
-//
-
-#include "gtest/gtest.h"
-
-#include "functional_test_utils/layer_test_utils.hpp"
-
-int main(int argc, char* argv[]) {
-    FuncTestUtils::SkipTestsConfig::disable_tests_skipping = false;
-    bool print_custom_help = false;
-    for (int i = 0; i < argc; ++i) {
-        if (std::string(argv[i]) == "--disable_tests_skipping") {
-            FuncTestUtils::SkipTestsConfig::disable_tests_skipping = true;
-        }
-        if (std::string(argv[i]) == "--help") {
-            print_custom_help = true;
-        }
-    }
-    if (print_custom_help) {
-        std::cout << "Custom command line argument:" << std::endl;
-        std::cout << "  --disable_tests_skipping" << std::endl;
-        std::cout << "       Ignore tests skipping rules and run all the test" << std::endl;
-        std::cout << "       (except those which are skipped with DISABLED prefix)" << std::endl;
-        std::cout << std::endl;
-    }
-    ::testing::InitGoogleTest(&argc, argv);
-    ::testing::AddGlobalTestEnvironment(new LayerTestsUtils::TestEnvironment);
-    auto retcode = RUN_ALL_TESTS();
-
-    return retcode;
-}
\ No newline at end of file
diff --git a/inference-engine/tests/functional/plugin/myriad/main.cpp b/inference-engine/tests/functional/plugin/myriad/main.cpp
deleted file mode 100644 (file)
index 6b0bcf6..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (C) 2020 Intel Corporation
-// SPDX-License-Identifier: Apache-2.0
-//
-
-#include "gtest/gtest.h"
-
-#include "functional_test_utils/layer_test_utils.hpp"
-
-int main(int argc, char* argv[]) {
-    FuncTestUtils::SkipTestsConfig::disable_tests_skipping = false;
-    bool print_custom_help = false;
-    for (int i = 0; i < argc; ++i) {
-        if (std::string(argv[i]) == "--disable_tests_skipping") {
-            FuncTestUtils::SkipTestsConfig::disable_tests_skipping = true;
-        }
-        if (std::string(argv[i]) == "--help") {
-            print_custom_help = true;
-        }
-    }
-    if (print_custom_help) {
-        std::cout << "Custom command line argument:" << std::endl;
-        std::cout << "  --disable_tests_skipping" << std::endl;
-        std::cout << "       Ignore tests skipping rules and run all the test" << std::endl;
-        std::cout << "       (except those which are skipped with DISABLED prefix)" << std::endl;
-        std::cout << std::endl;
-    }
-    ::testing::InitGoogleTest(&argc, argv);
-    ::testing::AddGlobalTestEnvironment(new LayerTestsUtils::TestEnvironment);
-    auto retcode = RUN_ALL_TESTS();
-
-    return retcode;
-}
\ No newline at end of file