@@ -558,31 +558,10 @@ if (NGRAPH_ONNX_IMPORT_ENABLE)
558558endif ()
559559
560560# SOURCE FOR FRONTEND TESTING
561-
562561file (GLOB FRONTEND_TESTS_SRC ${CMAKE_CURRENT_SOURCE_DIR} /frontend/frontend_manager.cpp)
563562set (SRC ${FRONTEND_TESTS_SRC} ${SRC} )
564563
565- file (GLOB FRONTEND_SHARED_TESTS_SRC ${CMAKE_CURRENT_SOURCE_DIR} /frontend/shared/src/*.cpp)
566- file (GLOB FRONTEND_SHARED_TESTS_HDR ${CMAKE_CURRENT_SOURCE_DIR} /frontend/shared/include /*.hpp)
567- set (SRC ${FRONTEND_SHARED_TESTS_SRC} ${SRC} )
568-
569- add_definitions ("-DTEST_MODEL_BUILD_DIR=\" ${CMAKE_CURRENT_BINARY_DIR} \" " )
570-
571- # ---- PaddlePaddle FrontEnd testing ------
572- if (NGRAPH_PDPD_FRONTEND_ENABLE)
573- ie_check_pip_package(paddlepaddle WARNING)
574-
575- if (paddlepaddle_FOUND)
576- file (GLOB FRONTEND_PDPD_TESTS_SRC ${CMAKE_CURRENT_SOURCE_DIR} /frontend/paddlepaddle/*.cpp)
577- set (SRC ${FRONTEND_PDPD_TESTS_SRC} ${SRC} )
578- set (PADDLE_TEST_MODELS_DIRNAME paddle_test_models)
579- set (TEST_PADDLE_MODELS ${CMAKE_CURRENT_BINARY_DIR} /${PADDLE_TEST_MODELS_DIRNAME} /)
580- add_definitions ("-DTEST_PADDLE_MODELS_DIRNAME=\" ${PADDLE_TEST_MODELS_DIRNAME} /\" " )
581- endif ()
582- endif ()
583- # ---- End PaddlePaddle FrontEnd testing ------
584-
585- add_clang_format_target(unit-test_clang FOR_SOURCES ${SRC} ${MULTI_TEST_SRC} ${FRONTEND_SHARED_TESTS_HDR} )
564+ add_clang_format_target(unit-test_clang FOR_SOURCES ${SRC} ${MULTI_TEST_SRC} )
586565
587566foreach (BACKEND_NAME ${ACTIVE_BACKEND_LIST} )
588567 string (TOLOWER ${BACKEND_NAME} BACKEND_DIR)
@@ -603,7 +582,6 @@ add_executable(unit-test ${SRC})
603582
604583target_include_directories (unit-test PRIVATE "." )
605584target_include_directories (unit-test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /runtime)
606- target_include_directories (unit-test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /frontend/shared/include )
607585
608586add_definitions ("-DCURDIR=\" ${CMAKE_CURRENT_SOURCE_DIR} \" " )
609587add_definitions ("-DJSON_INCLUDES=\" ${JSON_INCLUDE_DIR} \" " )
@@ -618,7 +596,8 @@ target_link_libraries(unit-test PRIVATE ngraph_test_util
618596 ie_backend
619597 interpreter_backend
620598 Threads::Threads
621- openvino::conditional_compilation)
599+ openvino::conditional_compilation
600+ frontend_manager)
622601
623602# Protobuf-lite does not support parsing files from prototxt format
624603# Since most of the onnx models are stored in this format it have to be disabled
@@ -655,39 +634,7 @@ install(TARGETS unit-test
655634 COMPONENT tests
656635 EXCLUDE_FROM_ALL )
657636
658- ############ FRONTEND ############
659- target_include_directories (unit-test PRIVATE ${FRONTEND_INCLUDE_PATH} frontend/shared/include )
660- target_link_libraries (unit-test PRIVATE frontend_manager cnpy commonTestUtils)
661-
662637add_subdirectory (frontend)
663- ### END FRONTEND ###
664-
665- #PaddlePaddle - test models generator
666- if (NGRAPH_PDPD_FRONTEND_ENABLE AND paddlepaddle_FOUND)
667- file (GLOB_RECURSE PDPD_GEN_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR} /files /paddlepaddle/gen_scripts/generate_*.py)
668- set (OUT_FILES "" )
669- foreach (GEN_SCRIPT ${PDPD_GEN_SCRIPTS} )
670- get_filename_component (FILE_WE ${GEN_SCRIPT} NAME_WE )
671- set (OUT_DONE_FILE ${TEST_PADDLE_MODELS} /${FILE_WE} _done.txt)
672- set (OUT_FILES ${OUT_DONE_FILE} ${OUT_FILES} )
673- add_custom_command (OUTPUT ${OUT_DONE_FILE}
674- COMMAND ${PYTHON_EXECUTABLE}
675- ${CMAKE_CURRENT_SOURCE_DIR} /files /paddlepaddle/gen_wrapper.py
676- ${GEN_SCRIPT}
677- ${TEST_PADDLE_MODELS}
678- ${OUT_DONE_FILE}
679- DEPENDS ${GEN_SCRIPT} ${CMAKE_CURRENT_SOURCE_DIR} /files /paddlepaddle/gen_wrapper.py
680- )
681- endforeach ()
682- add_custom_target (paddlepaddle_test_models DEPENDS ${OUT_FILES} )
683- add_dependencies (unit-test paddlepaddle_test_models)
684- add_dependencies (unit-test paddlepaddle_ngraph_frontend)
685-
686- install (DIRECTORY ${TEST_PADDLE_MODELS}
687- DESTINATION tests/${PADDLE_TEST_MODELS_DIRNAME}
688- COMPONENT tests
689- EXCLUDE_FROM_ALL )
690- endif ()
691638
692639# process models
693640add_dependencies (unit-test test_model_zoo)
0 commit comments