File: run_test.bat

package info (click to toggle)
statsmodels 0.14.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,956 kB
  • sloc: python: 254,365; f90: 612; sh: 560; javascript: 337; asm: 156; makefile: 145; ansic: 32; xml: 9
file content (20 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo on

@IF not Defined PYTEST_DIRECTIVES GOTO :RUN_FROM_INSTALL

@echo Running test from %CD%
@echo pytest -n auto -r s statsmodels --dist loadscope --skip-examples %PYTEST_DIRECTIVES%
pytest -n auto -r s statsmodels --dist loadscope --skip-examples %PYTEST_DIRECTIVES%

@GOTO :End

:RUN_FROM_INSTALL

mkdir test-run
cd test-run
@echo PYTEST_DIRECTIVES is not defined, testing using install
@echo Running test from %CD%
@echo python -c "import statsmodels;statsmodels.test(['-r s', '-n 2', '--skip-examples'], exit=True)"
python -c "import statsmodels;statsmodels.test(['-r s', '-n 2', '--skip-examples'], exit=True)"

:End