2016-10-03 06:45:07 +03:00
|
|
|
setlocal
|
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
cd "%~dp0"
|
2016-10-03 06:45:07 +03:00
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall" amd64
|
2016-10-03 06:45:07 +03:00
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
set MSSdk=1
|
|
|
|
set DISTUTILS_USE_SDK=1
|
2016-10-03 06:45:07 +03:00
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
python .\setup.py build_ext --inplace --force
|
|
|
|
if errorlevel 1 exit /b 1
|
2016-10-03 06:45:07 +03:00
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
set PATH=%CD%\..\..\x64\Release;%PATH%
|
|
|
|
set PYTHONPATH=%CD%;%CD%\examples;%PYTHONPATH%
|
2016-10-03 06:45:07 +03:00
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
pushd cntk\tests
|
2016-10-04 03:23:29 +03:00
|
|
|
echo RUNNING cntk unit tests...
|
|
|
|
pytest --deviceid gpu
|
2016-10-04 13:27:52 +03:00
|
|
|
if errorlevel 1 exit /b 1
|
2016-10-04 03:23:29 +03:00
|
|
|
echo(
|
2016-10-04 13:27:52 +03:00
|
|
|
popd
|
2016-10-04 03:23:29 +03:00
|
|
|
|
2016-10-04 13:27:52 +03:00
|
|
|
pushd cntk\ops\tests
|
2016-10-03 06:45:07 +03:00
|
|
|
echo RUNNING cntk\ops unit tests...
|
2016-10-04 03:23:29 +03:00
|
|
|
pytest --deviceid gpu
|
2016-10-04 13:27:52 +03:00
|
|
|
if errorlevel 1 exit /b 1
|
2016-10-03 06:45:07 +03:00
|
|
|
echo(
|
2016-10-04 13:27:52 +03:00
|
|
|
popd
|
2016-10-03 06:45:07 +03:00
|
|
|
|
|
|
|
endlocal
|