meta-intel/dynamic-layers/openembedded-layer/recipes-support/opencv/files/run-ptest
Chin Huat Ang eff93c1db6 dldt-inference-engine: fix ptest failures
Package libmock_engine.so as part of dldt-inference-engine-ptest and
update run-ptest to set LD_LIBRARY_PATH to fix the following
InferenceEngineUnitTests failures:

  FAIL: 12 tests, listed below:
  FAIL: PluginTest.canCreatePlugin
  FAIL: PluginTest.canCreatePluginUsingSmartPtr
  FAIL: PluginTest.shouldThrowExceptionIfPluginNotExist
  FAIL: PluginTest.canCallErrorHandlerIfNecessary
  FAIL: PluginTest.canForwardPluginEnginePtr
  FAIL: PluginTest.canSetConfiguration
  FAIL: PluginDispatcherTests.canLoadMockPlugin
  FAIL: PluginDispatcherTests.returnsIfLoadSuccessfull
  FAIL: SharedObjectLoaderTests.canLoadExistedPlugin
  FAIL: SharedObjectLoaderTests.canFindExistedMethod
  FAIL: SharedObjectLoaderTests.throwIfMethodNofFoundInLibrary
  FAIL: SharedObjectLoaderTests.canCallExistedMethod

Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-10-21 07:19:43 +08:00

14 lines
441 B
Bash

#!/bin/sh
# InferenceEngineUnitTests requires libmock_engine.so, since they are
# installed in the same directory we will need to set LD_LIBRARY_PATH
# so that libmock_engine.so is picked up correctly. We also assume that
# this script is only execute within the same directory where it is
# installed.
export LD_LIBRARY_PATH=.
./InferenceEngineUnitTests |sed \
-e 's|\[.*OK.*\]\(.*\)|PASS:\1|' \
-e 's|\[.*FAILED.*\]\(.*\)|FAIL:\1|'