BCIgui/Masterarbeit/openvibe/sdk-master/scripts/windows-ctest-launcher.cmd-base

31 lines
617 B
Plaintext
Raw Permalink Normal View History

2021-10-14 13:47:35 +02:00
@echo off
setlocal
REM Set test environment
set OV_PATH_ROOT=@DIST_BINDIR_ABSOLUTE@\..
set "PATH=@DIST_BINDIR_ABSOLUTE@;@OV_CUSTOM_DEPENDENCIES_PATH@\cmake\bin\;%PATH%"
if /i "%1" == "--python-dir" (
set "PYTHONHOME="
set "PYTHONPATH="
set "PATH=%2;%PATH%"
for /f "tokens=2,* delims= " %%a in ("%*") do set remaining_args=%%b
) else (
set remaining_args=%*
)
IF EXIST unit-test\NUL (
PUSHD unit-test
REM Execute ctest forwarding the arguments
ctest %remaining_args%
POPD
)
IF EXIST validation-test\NUL (
PUSHD validation-test
REM Execute ctest forwarding the arguments
ctest %remaining_args%
POPD
)