diff options
| author | 2020-08-05 09:29:23 +0200 | |
|---|---|---|
| committer | 2020-08-06 15:17:46 +0200 | |
| commit | 83ee52f4cdb082c64d55930299eb16145cd10287 (patch) | |
| tree | 4e6316f4dc5f972f9f59d2e39d0c5e9bee1a40b1 /rust/testing.go | |
| parent | 2f628baeaeb5e4c353df53040cc161b398a2ce1d (diff) | |
rust: validate existence of library source
While rust_bindgen modules may be interpreted as libraries, they do not
have a reference to the generated source until bindgen has been
executed. For now, ignore these modules.
Update the unit tests to cover the rust_bindgen case.
Test: SOONG_GEN_RUST_PROJECT=1 m nothing
Bug: 162881856
Change-Id: I329d0fe3d94b77d395c3684f55ab01544ff7c18f
Diffstat (limited to 'rust/testing.go')
| -rw-r--r-- | rust/testing.go | 23 | 
1 files changed, 22 insertions, 1 deletions
diff --git a/rust/testing.go b/rust/testing.go index 83b2828e5..925b02c96 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -44,7 +44,28 @@ func GatherRequiredDepsForTest() string {                                  },  				host_supported: true,  		} - +		rust_prebuilt_library { +				name: "libstd_x86_64-apple-darwin", +                                crate_name: "std", +                                rlib: { +                                    srcs: ["libstd.rlib"], +                                }, +                                dylib: { +                                    srcs: ["libstd.so"], +                                }, +				host_supported: true, +		} +		rust_prebuilt_library { +				name: "libtest_x86_64-apple-darwin", +                                crate_name: "test", +                                rlib: { +                                    srcs: ["libtest.rlib"], +                                }, +                                dylib: { +                                    srcs: ["libtest.so"], +                                }, +				host_supported: true, +		}  		//////////////////////////////  		// Device module requirements  |