Add test corpus for merge sequence generator
Each cycle_nodes_*.bin is a serialized PartitionUpdate protobuf message.
The merge_sequence() field of PartitionUpdate() stores list of merge
operations before generating merge sequence.
The merge sequence generator is heuristic based, so there should not be
a fixed expectation in test cases. Removed hard coded sequence
expectations in test, and fallback to verifying that a sequence is
correct.
Test: th
Bug: 289236484
Change-Id: I0d16f5563952535816f0747883f0dd6b210649ab
diff --git a/Android.bp b/Android.bp
index a33aa8f..4edd1c9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1048,6 +1048,8 @@
"unittest_key_RSA4096.pem",
"unittest_key_EC.pem",
"update_engine.conf",
+ "testdata/cycle_nodes_product.bin",
+ "testdata/cycle_nodes_product_no_xor.bin",
],
static_libs: [
"libgmock",
@@ -1164,6 +1166,8 @@
"unittest_key_RSA4096.pem",
"unittest_key_EC.pem",
"update_engine.conf",
+ "testdata/cycle_nodes_product.bin",
+ "testdata/cycle_nodes_product_no_xor.bin",
],
// We cannot use the default generated AndroidTest.xml because of the use of helper modules