From 1f4664162a25dcae165926fb0df05cf0a3610943 Mon Sep 17 00:00:00 2001 From: Victor Kuznetsov Date: Tue, 24 Aug 2021 00:39:12 +0300 Subject: [PATCH] install necessary dirs for tests (#7044) * install necessary dirs to tests * rem RUNTIME from install step * fix paths * fix install paths * fix install paths: add destination dirs * add pandas * fix requirements conflict - change pytest version to ~5 * remove comment from requirements.txt * upd numpy version --- tests/stress_tests/CMakeLists.txt | 3 +++ tests/stress_tests/scripts/requirements.txt | 1 + tests/time_tests/CMakeLists.txt | 3 +++ tests/time_tests/test_runner/requirements.txt | 6 +++--- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/stress_tests/CMakeLists.txt b/tests/stress_tests/CMakeLists.txt index 3370d86b5c4..7bed0cf1bff 100644 --- a/tests/stress_tests/CMakeLists.txt +++ b/tests/stress_tests/CMakeLists.txt @@ -20,3 +20,6 @@ add_subdirectory(common) add_subdirectory(unittests) add_subdirectory(memleaks_tests) add_subdirectory(memcheck_tests) + +install(DIRECTORY scripts/ DESTINATION tests/stress_tests/scripts COMPONENT tests EXCLUDE_FROM_ALL) +install(DIRECTORY .automation/ DESTINATION tests/stress_tests/.automation COMPONENT tests EXCLUDE_FROM_ALL) diff --git a/tests/stress_tests/scripts/requirements.txt b/tests/stress_tests/scripts/requirements.txt index 5d067c92297..681af3a4261 100644 --- a/tests/stress_tests/scripts/requirements.txt +++ b/tests/stress_tests/scripts/requirements.txt @@ -2,5 +2,6 @@ pymongo Jinja2 PyYAML fastjsonschema~=2.15.1 +pandas h5py<3.0.0 # WA for OMZ Keras models. Details: https://github.com/openvinotoolkit/open_model_zoo/issues/1806 \ No newline at end of file diff --git a/tests/time_tests/CMakeLists.txt b/tests/time_tests/CMakeLists.txt index 442e76b99eb..69fbb56bd0c 100644 --- a/tests/time_tests/CMakeLists.txt +++ b/tests/time_tests/CMakeLists.txt @@ -23,3 +23,6 @@ if(NOT InferenceEngine_FOUND) endif() add_subdirectory(src) + +install(DIRECTORY test_runner/ DESTINATION tests/time_tests/test_runner COMPONENT tests EXCLUDE_FROM_ALL) +install(DIRECTORY scripts/ DESTINATION tests/time_tests/scripts COMPONENT tests EXCLUDE_FROM_ALL) diff --git a/tests/time_tests/test_runner/requirements.txt b/tests/time_tests/test_runner/requirements.txt index 37f153fdf6e..d8db3f72fb2 100644 --- a/tests/time_tests/test_runner/requirements.txt +++ b/tests/time_tests/test_runner/requirements.txt @@ -1,8 +1,8 @@ -pytest==4.0.1 -attrs==19.1.0 # required for pytest==4.0.1 to resolve compatibility issues +pytest~=5.0 +attrs==19.1.0 PyYAML==5.4.1 jsonschema==3.2.0 distro==1.5.0 -numpy==1.18.5 +numpy>=1.19.2 pymongo pytest-html