|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| CMakeLists.txt | %!s(int64=2) %!d(string=hai) anos | |
| README.md | %!s(int64=5) %!d(string=hai) anos | |
| catch.hpp | %!s(int64=6) %!d(string=hai) anos | |
| hello-world.bin | %!s(int64=6) %!d(string=hai) anos | |
| qemu_test.cpp | %!s(int64=2) %!d(string=hai) anos | |
| run_test.sh | %!s(int64=4) %!d(string=hai) anos | |
| serial_io_mock.cpp | %!s(int64=2) %!d(string=hai) anos | |
| serial_io_mock.h | %!s(int64=2) %!d(string=hai) anos | |
| serial_io_tcp.cpp | %!s(int64=2) %!d(string=hai) anos | |
| test.cpp | %!s(int64=2) %!d(string=hai) anos | |
| test_main.cpp | %!s(int64=2) %!d(string=hai) anos | |
##Overview
Two kinds of tests are written for serial flasher:
Qemu tests uses emulated esp32 to test correctness of the library.
Please refer to building qemu for instructions how to compile.
QEMU_PATH environment variable pointing to compiled qemu/build/xtensa-softmmu/qemu-system-xtensa has to be defined.
export QEMU_PATH=path_to_qemu-system-xtensa
./run_test.sh qemu
./run_test.sh host