platform_bootable_recovery/tests/component
Tao Bao c0299edd46 tests: Add ResumableUpdaterTest.
This is a stress test that instantiates multiple testcases that
interrupt a BBOTA update at every transfer command. Each testcase
asserts the last_command_file after the interruption, verifies the
update resumability, then resumes the update and asserts the updated
image.

The transfer list in the testcase covers most of the transfer commands
(stash/free/move/bsdiff/zero/new), as well as some special pattern like
having duplicate stash ids.

This CL also addresses one issue in the updater code, by resetting the
stash_map before each run. The stash map should be valid only per
block_image_verify/block_image_update run. Having leftover may cause
issue in subsequent runs, in particular when calling block_image_verify
after a previous run of block_image_{update,verify}.

Test: Run recovery_component_test on marlin.
Change-Id: I6f9a0368d194a754ce41a9c9819c6d5be2657248
2018-06-04 16:19:45 +00:00
..
applypatch_test.cpp Merge "Dump the uncompressed data's SHA1 to debug flaky tests" 2018-04-26 17:23:00 +00:00
bootloader_message_test.cpp Switch to bionic gtest in bootable/recovery 2017-11-03 14:09:11 -07:00
edify_test.cpp Remove malloc in edify functions 2017-03-22 14:20:57 -07:00
imgdiff_test.cpp Convert deflate image chunks to raw if the raw data is smaller 2018-05-24 10:49:54 -07:00
install_test.cpp tests: Take the ownership of the FD when calling fdopen. 2017-10-26 12:05:57 -07:00
resources_test.cpp tests: Move ResourcesTest into component test. 2018-04-16 11:29:06 -07:00
sideload_test.cpp Clean up fuse_sideload and add a testcase. 2017-11-03 18:30:41 -07:00
uncrypt_test.cpp Switch to bionic gtest in bootable/recovery 2017-11-03 14:09:11 -07:00
update_verifier_test.cpp Make update_verifier generic across verified boot versions. 2018-04-20 14:26:38 -07:00
updater_test.cpp tests: Add ResumableUpdaterTest. 2018-06-04 16:19:45 +00:00
verifier_test.cpp otautil: Rename dir/sys/thermal utils. 2018-05-03 23:17:29 -07:00