14
0
forked from pool/micropython

Accepting request 1010119 from home:Andreas_Schwab:Factory

- Suppress stripping of binary
- Run tests everywhere with just the problematic ones suppressed

OBS-URL: https://build.opensuse.org/request/show/1010119
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=15
This commit is contained in:
2022-10-12 10:49:10 +00:00
committed by Git OBS Bridge
parent b01e621425
commit ecab8eb8fb
2 changed files with 13 additions and 6 deletions

View File

@@ -44,20 +44,21 @@ sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main
%build
%make_build -C mpy-cross
%make_build -C ports/unix micropython
%make_build -C ports/unix micropython STRIP=true
%install
install -d %{buildroot}%{_bindir}
install -t %{buildroot}%{_bindir} ports/unix/micropython
%ifnarch aarch64 s390x
# s390x: 3 tests failes: float_parse float_parse_doubleprec ffi_callback
# aarch64: 2 tests failed: float_parse float_parse_doubleprec
# https://github.com/micropython/micropython/issues/4176
%check
%ifnarch x86_64
# 2 tests fail: float_parse float_parse_doubleprec
# https://github.com/micropython/micropython/pull/6024
rm -f tests/float/float_parse.py
rm -f tests/float/float_parse_doubleprec.py
%endif
export MICROPY_CPYTHON3=python3
make -C ports/unix PYTHON=%{_bindir}/python3 V=1 test
%endif
%files
%license LICENSE