|
98 | 98 | after_failure: |
99 | 99 | - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done) |
100 | 100 |
|
| 101 | + # unix coverage 32-bit |
| 102 | + - stage: test |
| 103 | + env: NAME="unix coverage 32-bit build and tests" |
| 104 | + install: |
| 105 | + - sudo apt-get install gcc-multilib libffi-dev:i386 |
| 106 | + - sudo apt-get install python3-pip |
| 107 | + - sudo pip3 install setuptools |
| 108 | + - sudo pip3 install pyelftools |
| 109 | + - gcc --version |
| 110 | + - python3 --version |
| 111 | + script: |
| 112 | + - make ${MAKEOPTS} -C mpy-cross |
| 113 | + - make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 submodules |
| 114 | + - make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 deplibs |
| 115 | + - make ${MAKEOPTS} -C ports/unix MICROPY_FORCE_32BIT=1 coverage |
| 116 | + # run the main test suite |
| 117 | + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests) |
| 118 | + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -d thread) |
| 119 | + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native) |
| 120 | + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython) |
| 121 | + - (cd tests && MICROPY_CPYTHON3=python3 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy --emit native --mpy-cross-flags='-mcache-lookup-bc -march=x86' -d basics float micropython) |
| 122 | + # test when input script comes from stdin |
| 123 | + - cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc' |
| 124 | + # test building native mpy modules |
| 125 | + - make -C examples/natmod/features1 ARCH=x86 |
| 126 | + - make -C examples/natmod/features2 ARCH=x86 |
| 127 | + - make -C examples/natmod/btree ARCH=x86 |
| 128 | + - make -C examples/natmod/framebuf ARCH=x86 |
| 129 | + - make -C examples/natmod/uheapq ARCH=x86 |
| 130 | + - make -C examples/natmod/urandom ARCH=x86 |
| 131 | + - make -C examples/natmod/ure ARCH=x86 |
| 132 | + - make -C examples/natmod/uzlib ARCH=x86 |
| 133 | + # test importing .mpy generated by mpy_ld.py |
| 134 | + - MICROPYPATH=examples/natmod/features2 ./ports/unix/micropython_coverage -m features2 |
| 135 | + - (cd tests && ./run-natmodtests.py --arch x86 extmod/{btree*,framebuf*,uheapq*,ure*,uzlib*}.py) |
| 136 | + after_failure: |
| 137 | + - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done) |
| 138 | + |
101 | 139 | # standard unix port |
102 | 140 | - stage: test |
103 | 141 | env: NAME="unix port build and tests" |
|
0 commit comments