Test improvements.
Delete our test APEX, and instead re-use existing test APEXes from
/system/apex/apexd.
Add new tests to make sure verification fails when it should.
Bug: 308759880
Test: atest libapexutil_rust.test
Change-Id: Icf88049b3e55c9c70fa995e4ac432fcc9c98992a
diff --git a/libs/apexutil/Android.bp b/libs/apexutil/Android.bp
index d248d5e..beff58d 100644
--- a/libs/apexutil/Android.bp
+++ b/libs/apexutil/Android.bp
@@ -28,7 +28,12 @@
defaults: ["libapexutil_rust.defaults"],
prefer_rlib: true,
test_suites: ["general-tests"],
- data: ["tests/data/*"],
+ // We're reusing test APEXes from system/apex/apexd
+ data: [
+ ":apex.apexd_test",
+ ":apex.apexd_test_v2_no_pb",
+ ":gen_key_mismatch_with_image_apex",
+ ],
rustlibs: [
"libhex",
],