Pdpd tests moved to folder with frontend (#13414)
* Moved pdpd tests to folder with pdpd frontend * Restored old requirements.txt for paddle temporarily * FIxed requirements path for pdpd * Restore old dependency
This commit is contained in:
parent
efb987d60f
commit
838a6503a0
@ -139,7 +139,7 @@ jobs:
|
||||
# For running Python API tests
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements-dev.txt
|
||||
# For running Paddle frontend unit tests
|
||||
python3 -m pip install -r $(REPO_DIR)/src/core/tests/frontend/paddle/requirements_dev.txt
|
||||
python3 -m pip install -r $(REPO_DIR)/src/frontends/paddle/tests/requirements.txt
|
||||
# For running ONNX frontend unit tests
|
||||
python3 -m pip install -r $(REPO_DIR)/src/frontends/onnx/tests/requirements.txt
|
||||
# For MO unit tests
|
||||
|
@ -131,7 +131,7 @@ jobs:
|
||||
# For running Python API tests
|
||||
python3 -m pip install -r $(REPO_DIR)/src/bindings/python/src/compatibility/openvino/requirements-dev.txt
|
||||
# For running Paddle frontend unit tests
|
||||
python3 -m pip install -r $(REPO_DIR)/src/core/tests/frontend/paddle/requirements_dev.txt
|
||||
python3 -m pip install -r $(REPO_DIR)/src/frontends/paddle/tests/requirements.txt
|
||||
# For running ONNX frontend unit tests
|
||||
python3 -m pip install -r $(REPO_DIR)/src/frontends/onnx/tests/requirements.txt
|
||||
# For MO unit tests
|
||||
|
@ -141,7 +141,7 @@ if(ENABLE_TESTS)
|
||||
add_dependencies(test_model_zoo test_pip_prerequisites)
|
||||
endif()
|
||||
|
||||
if (ENABLE_OV_PADDLE_FRONTEND AND ENABLE_OV_CORE_UNIT_TESTS)
|
||||
if (ENABLE_OV_PADDLE_FRONTEND)
|
||||
add_dependencies(test_model_zoo paddle_test_models)
|
||||
endif()
|
||||
|
||||
|
@ -2,10 +2,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if (ENABLE_OV_PADDLE_FRONTEND)
|
||||
add_subdirectory(paddle)
|
||||
endif()
|
||||
|
||||
set(SRC ${CMAKE_CURRENT_SOURCE_DIR}/mock_frontend.cpp)
|
||||
set(MOCK1_FE_NAME openvino_mock1_frontend)
|
||||
add_library(${MOCK1_FE_NAME} SHARED EXCLUDE_FROM_ALL ${SRC})
|
||||
|
@ -3,3 +3,7 @@
|
||||
#
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
@ -19,10 +19,10 @@ install(TARGETS ${TARGET_NAME}
|
||||
EXCLUDE_FROM_ALL)
|
||||
|
||||
# Test model generating
|
||||
ov_check_pip_package(REQUIREMENT paddlepaddle
|
||||
MESSAGE_MODE WARNING
|
||||
WARNING_MESSAGE "PaddlePaddle frontend unit tests will be skipped"
|
||||
RESULT_VAR paddlepaddle_FOUND)
|
||||
ov_check_pip_packages(REQUIREMENTS_FILE "${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt"
|
||||
MESSAGE_MODE WARNING
|
||||
WARNING_MESSAGE "PaddlePaddle frontend unit tests will be skipped"
|
||||
RESULT_VAR paddlepaddle_FOUND)
|
||||
|
||||
set(TEST_PADDLE_MODELS_DIRNAME test_model_zoo/paddle_test_models)
|
||||
target_compile_definitions(${TARGET_NAME} PRIVATE -D TEST_PADDLE_MODELS_DIRNAME=\"${TEST_PADDLE_MODELS_DIRNAME}/\")
|
6
src/frontends/paddle/tests/requirements.txt
Normal file
6
src/frontends/paddle/tests/requirements.txt
Normal file
@ -0,0 +1,6 @@
|
||||
# PaddlePaddle - generate test models
|
||||
paddlepaddle==2.3.2
|
||||
gast==0.3.3
|
||||
numpy>=1.16.6,<=1.23.1
|
||||
six~=1.15.0
|
||||
protobuf>=3.18.1,<4.0.0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user