[IE TESTS] Move main.cpp to shared lib from plugin functional tests (#3157)
This commit is contained in:
parent
8d855fb654
commit
dc710d6090
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user