Martin Valik eb33d33cf2 Host tests added. 6 lat temu
..
CMakeLists.txt bf79d53551 Tests added 6 lat temu
README.md bf79d53551 Tests added 6 lat temu
catch.hpp bf79d53551 Tests added 6 lat temu
hello-world.bin bf79d53551 Tests added 6 lat temu
qemu_test.cpp bf79d53551 Tests added 6 lat temu
run_qemu.sh bf79d53551 Tests added 6 lat temu
serial_io_mock.cpp eb33d33cf2 Host tests added. 6 lat temu
serial_io_mock.h bf79d53551 Tests added 6 lat temu
serial_io_tcp.cpp bf79d53551 Tests added 6 lat temu
test.cpp eb33d33cf2 Host tests added. 6 lat temu
test_main.cpp bf79d53551 Tests added 6 lat temu

README.md

Serial flasher Tests

##Overview

Two kinds of tests are written for serial flasher:

  • Host tests
  • Qemu tests

Qemu tests uses emulated esp32 to test correctness of the library.

Installation (Only for qemu tests)

Please refer to building qemu for instructions how to compile.

Build and run

Qemu test

Before running qemu tests, qemu itself has to be launched first.

QEMU_PATH environment variable pointing to qemu-system-xtensa has to be defined.

export QEMU_PATH=path_to_qemu-system-xtensa
sh run_qemu.sh

Run qemu test

cmake .. -DQEMU_TEST=True && make && ./serial_flasher_test

Host test

Run host test

cmake .. -DQEMU_TEST=False && make && ./serial_flasher_test