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
|
|
|
set PATH=%CD%\..\..\x64\Release;%PATH%
|
|
|
|
set PYTHONPATH=%CD%;%CD%\examples;%PYTHONPATH%
|
|
|
|
|
|
|
|
pushd cntk\tests
|
2016-10-04 03:23:29 +03:00
|
|
|
echo RUNNING cntk unit tests...
|
|
|
|
pytest --deviceid gpu
|
2017-03-22 04:42:17 +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
|
|
|
|
2017-03-08 05:10:08 +03:00
|
|
|
pushd cntk\debugging\tests
|
|
|
|
echo RUNNING cntk\debugging unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\internal\tests
|
|
|
|
echo RUNNING cntk\internal unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\io\tests
|
|
|
|
echo RUNNING cntk\io unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\layers\tests
|
|
|
|
echo RUNNING cntk\layers unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\learners\tests
|
|
|
|
echo RUNNING cntk\learners unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\logging\tests
|
|
|
|
echo RUNNING cntk\logging unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\losses\tests
|
|
|
|
echo RUNNING cntk\losses unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\metrics\tests
|
|
|
|
echo RUNNING cntk\metrics unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
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...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
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
|
|
|
|
2017-03-08 05:10:08 +03:00
|
|
|
pushd cntk\train\tests
|
|
|
|
echo RUNNING cntk\train unit tests...
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
2017-03-22 04:42:17 +03:00
|
|
|
pushd cntk\losses
|
|
|
|
echo RUNNING cntk\losses doctests...
|
|
|
|
pytest __init__.py
|
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\ops
|
|
|
|
echo RUNNING cntk\ops doctests...
|
|
|
|
pytest __init__.py
|
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\ops
|
|
|
|
echo RUNNING cntk\ops function doctests...
|
|
|
|
pytest functions.py
|
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\ops\sequence
|
|
|
|
echo RUNNING cntk\ops\sequence doctests...
|
|
|
|
pytest __init__.py
|
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cntk\layers
|
|
|
|
echo RUNNING cntk\layers doctests...
|
|
|
|
pytest layers.py
|
|
|
|
if errorlevel 1 exit /b 1
|
2017-03-08 05:10:08 +03:00
|
|
|
echo(
|
|
|
|
popd
|
|
|
|
|
2016-11-10 15:02:35 +03:00
|
|
|
pushd ..\..\Tests\EndToEndTests\CNTKv2Python\Examples
|
|
|
|
echo RUNNING cntk\Tests\EndToEndTests\CNTKv2Python\Examples tests
|
2017-03-22 04:42:17 +03:00
|
|
|
pytest --deviceid gpu
|
|
|
|
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
|