task_unit_test.bat 472 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
@ECHO OFF
SETLOCAL EnableDelayedExpansion

IF x%1x==xx (
	ECHO Specify backend
	EXIT /B 1
) ELSE (
	SET BACKEND=%1
)
10
CALL workon %BUILD_TAG%
11

Minjie Wang's avatar
Minjie Wang committed
12
13
14
15
SET PYTHONPATH=tests;!CD!\python;!PYTHONPATH!
SET DGLBACKEND=!BACKEND!
SET DGL_LIBRARY_PATH=!CD!\build
SET DGL_DOWNLOAD_DIR=!CD!
16

17
python -m nose -v --with-xunit tests\!DGLBACKEND! || EXIT /B 1
18
python -m nose -v --with-xunit tests\graph_index || EXIT /B 1
19
python -m nose -v --with-xunit tests\compute || EXIT /B 1
Minjie Wang's avatar
Minjie Wang committed
20
ENDLOCAL
21
EXIT /B