refactor cpu func unit tests (#12711)

* Refactor cpuFuncTests and cpuUnitTests to components folder.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Build pass.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add macro to judge if enable func test.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename func_test to functional;
Rename unit_test to unit;
Add "enable_tests" for unit;

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
This commit is contained in:
Xiping Yan 2022-08-25 09:30:40 +08:00 committed by GitHub
parent 10bd602987
commit 11a869d4d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
477 changed files with 31 additions and 30 deletions

View File

@ -37,6 +37,12 @@ if(TBB_FOUND AND TBB_VERSION VERSION_GREATER_EQUAL 2018 AND TBB_VERSION VERSION_
endif()
add_subdirectory(thirdparty)
if(ENABLE_TESTS)
add_subdirectory(tests/unit)
endif()
if(ENABLE_FUNCTIONAL_TESTS)
add_subdirectory(tests/functional)
endif()
# create plugin

View File

@ -9,7 +9,7 @@
using namespace ngraph;
InferenceEngine::CNNNetwork getTargetNetwork() {
inline InferenceEngine::CNNNetwork getTargetNetwork() {
ngraph::Shape shape = {1, 200};
ngraph::element::Type type = ngraph::element::f32;

Some files were not shown because too many files have changed in this diff Show More