summaryrefslogtreecommitdiff
path: root/sysprop/sysprop_test.go
diff options
context:
space:
mode:
author Andrew Walbran <qwandor@google.com> 2024-03-12 17:27:29 +0000
committer Andrew Walbran <qwandor@google.com> 2024-03-18 19:02:04 +0000
commitacd75d2b508e2f85990dde5792111db962fb7c9c (patch)
tree189778deca48b061d6788fd76157e2db75da42aa /sysprop/sysprop_test.go
parentd3f500da5b26b2dc60f5a0caa9eb3399a1505fda (diff)
Generate wrapper lib.rs with one module per sysprop file.
This required moving to a SourceProvider for the Rust library. With the previous approach only the first input file was being used. Bug: 270547306 Test: Built libplatformproperties_rust, looked at output Change-Id: I1070655abc071e099a42bc4be61cc080902e31c1
Diffstat (limited to 'sysprop/sysprop_test.go')
-rw-r--r--sysprop/sysprop_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysprop/sysprop_test.go b/sysprop/sysprop_test.go
index 9dd696f75..dfbbe7dd9 100644
--- a/sysprop/sysprop_test.go
+++ b/sysprop/sysprop_test.go
@@ -72,6 +72,15 @@ func test(t *testing.T, bp string) *android.TestResult {
vendor_available: true,
min_sdk_version: "29",
}
+
+ rust_library {
+ name: "liblog_rust",
+ crate_name: "log",
+ srcs: ["log/src/lib.rs"],
+ product_available: true,
+ vendor_available: true,
+ min_sdk_version: "29",
+ }
`
mockFS := android.MockFS{
@@ -115,6 +124,7 @@ func test(t *testing.T, bp string) *android.TestResult {
"com/android2/OdmProperties.sysprop": nil,
"librustutils/lib.rs": nil,
+ "log/src/lib.rs": nil,
}
result := android.GroupFixturePreparers(