Fix TimeTests build and README (#2275)
authorVitaliy Urusovskij <vitaliy.urusovskij@intel.com>
Thu, 17 Sep 2020 10:01:40 +0000 (13:01 +0300)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 10:01:40 +0000 (13:01 +0300)
* Fix searching of pipelines for `time_tests` build

* Add `realpath` use in README for IEDevPackage because of limitation

* Add `mkdir build && cd build` commands in README

* Rename `time-tests` to `time_tests` in README

tests/time_tests/README.md
tests/time_tests/src/CMakeLists.txt

index 8ca98a2..323e9c0 100644 (file)
@@ -15,7 +15,8 @@ To build and run the tests, open a terminal and run the commands below:
 
 1. Build tests:
 ``` bash
-cmake .. -DInferenceEngineDeveloperPackage_DIR=../../../build && make time-tests
+mkdir build && cd build
+cmake .. -DInferenceEngineDeveloperPackage_DIR=$(realpath ../../../build) && make time_tests
 ```
 
 2. Run test:
index d04abf7..c886bf7 100644 (file)
@@ -5,9 +5,9 @@
 # add dummy `time_tests` target combines all time tests
 add_custom_target(time_tests)
 
-# Build test from every source file matchs *-pipeline.cpp.
+# Build test from every source file.
 # Test target name is source file name without extension.
-FILE(GLOB tests "*-pipeline.cpp")
+FILE(GLOB tests "*.cpp")
 
 foreach(test_source ${tests})
     get_filename_component(test_name ${test_source} NAME_WE)