fastboot: Add a test for super_flash_helper.
This test checks that the sparsing logic matches a canonical sample
output.
Bug: N/A
Test: fastboot_test
Change-Id: Ic7bad08a79e4223f8352db2397b741c2179e76bb
diff --git a/fastboot/Android.bp b/fastboot/Android.bp
index 6d50fa4..76aaf7b 100644
--- a/fastboot/Android.bp
+++ b/fastboot/Android.bp
@@ -378,6 +378,7 @@
"fastboot_test.cpp",
"socket_mock.cpp",
"socket_test.cpp",
+ "super_flash_helper_test.cpp",
"tcp_test.cpp",
"udp_test.cpp",
],
@@ -395,6 +396,12 @@
},
test_suites: ["general-tests"],
+
+ data: [
+ "testdata/super.img",
+ "testdata/super_empty.img",
+ "testdata/system.img",
+ ],
}
cc_test_host {