task_unit_test.bat 570 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

VoVAllen's avatar
VoVAllen committed
17
18
19
20
python -m pip install pytest || EXIT /B 1
python -m pytest -v --junitxml=pytest_backend.xml tests\!DGLBACKEND! || EXIT /B 1
python -m pytest -v --junitxml=pytest_gindex.xml tests\graph_index || EXIT /B 1
python -m pytest -v --junitxml=pytest_compute.xml tests\compute || EXIT /B 1
Minjie Wang's avatar
Minjie Wang committed
21
ENDLOCAL
22
EXIT /B