windows: Run tests via Makefile.
The application isn't necessarily called 'micropython' especially not When using variants, i.e. the tests need to be ran using $(PROG).
This commit is contained in:
parent
05ed19e73e
commit
7955734aca
|
@ -67,17 +67,8 @@ after_test:
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
throw "$env:MSYSTEM mpy_cross build exited with code $LASTEXITCODE"
|
throw "$env:MSYSTEM mpy_cross build exited with code $LASTEXITCODE"
|
||||||
}
|
}
|
||||||
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
|
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
|
||||||
$testArgs = @('run-tests.py')
|
C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full"
|
||||||
foreach ($skipTest in @('math_fun', 'float2int_double', 'float_parse', 'math_domain_special')) {
|
|
||||||
$testArgs = $testArgs + '-e' + $skipTest
|
|
||||||
}
|
|
||||||
& $env:MICROPY_CPYTHON3 $testArgs
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
|
|
||||||
throw "Test failure"
|
|
||||||
}
|
|
||||||
& $env:MICROPY_CPYTHON3 ($testArgs + @('--via-mpy', '-d', 'basics', 'float', 'micropython'))
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
|
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
|
||||||
throw "Test failure"
|
throw "Test failure"
|
||||||
|
|
|
@ -81,3 +81,15 @@ CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_MODULE_F
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(TOP)/py/mkrules.mk
|
include $(TOP)/py/mkrules.mk
|
||||||
|
|
||||||
|
.PHONY: test test_full
|
||||||
|
|
||||||
|
RUN_TESTS_SKIP += -e math_fun -e float2int_double -e float_parse -e math_domain_special
|
||||||
|
|
||||||
|
test: $(PROG) $(TOP)/tests/run-tests.py
|
||||||
|
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
|
||||||
|
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) $(PYTHON) ./run-tests.py $(RUN_TESTS_SKIP)
|
||||||
|
|
||||||
|
test_full: test
|
||||||
|
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
|
||||||
|
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) $(PYTHON) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) $(RUN_TESTS_SKIP) -d basics float micropython
|
||||||
|
|
Loading…
Reference in New Issue