You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

windows-ctest-launcher.cmd-base 617B

3 years ago
123456789101112131415161718192021222324252627282930
  1. @echo off
  2. setlocal
  3. REM Set test environment
  4. set OV_PATH_ROOT=@DIST_BINDIR_ABSOLUTE@\..
  5. set "PATH=@DIST_BINDIR_ABSOLUTE@;@OV_CUSTOM_DEPENDENCIES_PATH@\cmake\bin\;%PATH%"
  6. if /i "%1" == "--python-dir" (
  7. set "PYTHONHOME="
  8. set "PYTHONPATH="
  9. set "PATH=%2;%PATH%"
  10. for /f "tokens=2,* delims= " %%a in ("%*") do set remaining_args=%%b
  11. ) else (
  12. set remaining_args=%*
  13. )
  14. IF EXIST unit-test\NUL (
  15. PUSHD unit-test
  16. REM Execute ctest forwarding the arguments
  17. ctest %remaining_args%
  18. POPD
  19. )
  20. IF EXIST validation-test\NUL (
  21. PUSHD validation-test
  22. REM Execute ctest forwarding the arguments
  23. ctest %remaining_args%
  24. POPD
  25. )