Add ignorabletest test harness.
This is a custom test harness which allows tests to be ignored at
runtime based on arbitrary conditions.
Bug: 260692911
Test: Ran apkdmverity and devicemapper tests with this harness
Change-Id: Ibafef988b8114ac54db569435bd854ea5b78ed2b
diff --git a/libs/ignorabletest/Android.bp b/libs/ignorabletest/Android.bp
new file mode 100644
index 0000000..0947243
--- /dev/null
+++ b/libs/ignorabletest/Android.bp
@@ -0,0 +1,26 @@
+rust_library {
+ name: "libignorabletest",
+ host_supported: true,
+ crate_name: "ignorabletest",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.1.0",
+ srcs: ["src/lib.rs"],
+ edition: "2021",
+ rustlibs: [
+ "liblibtest_mimic",
+ ],
+ proc_macros: ["libpaste"],
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+ ],
+}
+
+rust_defaults {
+ name: "ignorabletest.defaults",
+ test_harness: false,
+ cfgs: ["test"],
+ rustlibs: [
+ "libignorabletest",
+ ],
+}