diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2019-06-05 23:40:57 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2019-06-05 23:40:57 +0300 |
commit | b2284f19b8b9c0a59b5c81ba38d27fc0e7764b57 (patch) | |
tree | 1a5171a3f12ca3286de6284d090925ee541d4a32 /lite-aeolus | |
parent | acd058c09e6a11e98003588eda05a9d030002a07 (diff) |
lite-aeolus-micropython: qemu_x86: Build testsuite as first step
Build, then run testsuite, then clean before building the main binary
in an attempt to get rid of weird errors which creep in. E.g.:
misc/sys_exc_info.py: SKIPPED
338 tests ok. (183 skipped)
status: 0
+ rm -f /tmp/slip.sock
+ socat PTY,link=/tmp/slip.dev UNIX-LISTEN:/tmp/slip.sock
+ make BOARD=qemu_x86 test
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
cd ../../tests && ./run-tests --target minimal --device "execpty:make -C ../ports/zephyr run BOARD=qemu_x86 QEMU_PTY=1"
Error: unable to find PTY device in startup line:
/home/buildslave/srv/toolchain/zephyr-sdk-0.10.0/i586-zephyr-elf/bin/../lib/gcc/i586-zephyr-elf/8.3.0/../../../../i586-zephyr-elf/bin/ld:
/home/buildslave/workspace/lite-aeolus-micropython/ports/zephyr/libmicropython.a(printf.o):
relocations in generic ELF (EM: 40)
Change-Id: I0743a497fc16d2dcca9e1e16abd3c98d300011a1
Diffstat (limited to 'lite-aeolus')
-rw-r--r-- | lite-aeolus/build-micropython.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lite-aeolus/build-micropython.sh b/lite-aeolus/build-micropython.sh index 4129681b7f..0e3cc08a29 100644 --- a/lite-aeolus/build-micropython.sh +++ b/lite-aeolus/build-micropython.sh @@ -14,6 +14,14 @@ full_testsuite() { } cd ports/zephyr + +if [ ${PLATFORM} = "qemu_x86" ]; then + # Build and run binary with embedded testsuite + ./run-builtin-testsuite.sh + make clean +fi + + if small_rom ${PLATFORM}; then ./make-minimal BOARD=${PLATFORM} elif full_testsuite ${PLATFORM}; then @@ -23,9 +31,6 @@ else fi if [ ${PLATFORM} = "qemu_x86" ]; then - # Build and run binary with embedded testsuite - ./run-builtin-testsuite.sh - # Run testsuite via piping scripts to REPL - doesn't work reliably # with QEMU, will likely be removed rm -f /tmp/slip.sock |