[IE TESTS] Move main.cpp to shared lib from plugin functional tests (#3157)

This commit is contained in:
Irina Efode 2020-11-17 10:11:17 +03:00 committed by GitHub
parent 8d855fb654
commit dc710d6090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 96 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}