forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
34 lines (29 loc) · 874 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <chrono>
#include <iostream>
#include "gtest/gtest.h"
#include "ngraph/log.hpp"
#include "ngraph/ngraph.hpp"
using namespace std;
int main(int argc, char** argv) {
const string cpath_flag{"--cpath"};
string cpath;
const char* exclude = "--gtest_filter=-benchmark.*";
vector<char*> argv_vector;
argv_vector.push_back(argv[0]);
argv_vector.push_back(const_cast<char*>(exclude));
for (int i = 1; i < argc; i++) {
argv_vector.push_back(argv[i]);
}
argc = static_cast<int>(argv_vector.size());
::testing::InitGoogleTest(&argc, argv_vector.data());
for (int i = 1; i < argc; i++) {
if (cpath_flag == argv[i] && (++i) < argc) {
cpath = argv[i];
}
}
int rc = RUN_ALL_TESTS();
return rc;
}