forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CONFORMANCE] Cleaning up (openvinotoolkit#20835)
* 1. Add Op_conformance_utils lib. 2.rename targets. 3. Remove behavior folder from api conformance 4. Remove ov1.0 from opImplCheck 5. move tests and insts to one file 6. small refactoring for op conformance test names * align namespaces, remove test_utils from subgraphs_dumper * update target names * Remove extra * Fix the tests without shapes in meta * fix failed test names * Add attribute reader * Fix buils * Check the registered lib * try * add comparator * Revert "try" This reverts commit 27eaa4e. * try to fix win build * types * tr * remove pragma once
- Loading branch information
Showing
96 changed files
with
2,655 additions
and
2,380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/tests/functional/plugin/conformance/op_conformance_utils/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright (C) 2018-2023 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
set(TARGET_NAME op_conformance_utils) | ||
|
||
list(APPEND LIBRARIES | ||
openvino::runtime | ||
openvino::pugixml | ||
openvino::util | ||
) | ||
|
||
# add op_conformance_utils lib to get API | ||
ov_add_target( | ||
NAME "${TARGET_NAME}" | ||
TYPE STATIC | ||
ROOT "${CMAKE_CURRENT_SOURCE_DIR}/src" | ||
INCLUDES | ||
PUBLIC | ||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" | ||
LINK_LIBRARIES | ||
PUBLIC | ||
${LIBRARIES} | ||
DEPENDENCIES | ||
${LIBRARIES} | ||
ADD_CPPLINT | ||
) | ||
|
||
ov_build_target_faster(${TARGET_NAME} UNITY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ional/plugin/conformance/op_conformance_utils/include/op_conformance_utils/utils/file.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (C) 2018-2023 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#pragma once | ||
|
||
#include <vector> | ||
#include <string> | ||
#include <regex> | ||
|
||
namespace ov { | ||
namespace util { | ||
|
||
std::vector<std::string> | ||
get_filelist_recursive(const std::vector<std::string>& dir_paths, | ||
const std::vector<std::regex>& patterns); | ||
|
||
std::vector<std::string> | ||
read_lst_file(const std::vector<std::string>& file_paths, | ||
const std::vector<std::regex>& patterns = {std::regex(".*")}); | ||
|
||
std::string replace_extension(std::string file, const std::string& new_extension); | ||
|
||
inline void remove_path(const std::string& path) { | ||
if (!path.empty()) { | ||
std::remove(path.c_str()); | ||
} | ||
} | ||
|
||
std::vector<std::string> | ||
split_str(std::string paths, const char delimiter = ','); | ||
|
||
} // namespace util | ||
} // namespace ov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.