blob: 6b3a474c7b9b699bdd3ad0b9689d6bfa3df1320f [file] [log] [blame]
Jiyong Parkf29fe392021-07-15 06:03:31 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5java_test_host {
6 name: "AuthFsHostTest",
7 srcs: ["java/**/*.java"],
8 libs: [
9 "tradefed",
10 "compatibility-tradefed",
11 "compatibility-host-util",
12 ],
13 static_libs: [
14 "VirtualizationTestHelper",
15 ],
16 test_suites: ["general-tests"],
Victor Hsieh994d6082021-10-29 09:04:40 -070017 target_required: ["open_then_run_module"],
Jiyong Parkf29fe392021-07-15 06:03:31 +000018 data: [
19 ":authfs_test_files",
20 ":MicrodroidTestApp.signed",
21 ],
22}
Victor Hsiehae67d3b2021-10-19 12:59:42 -070023
24rust_test {
Victor Hsieh994d6082021-10-29 09:04:40 -070025 // PushFilePreparer can sometimes push the directory (if named "open_then_run", which contains
26 // the actual executable in a per-architecture sub-directory) instead of the executable. This
27 // makes it harder to use because the host Java test have to detect the executable path
28 // dynamically, e.g. if it's a directory, append the device's architecture to build the actual
29 // executable path. By simply renaming the module (thus the host directory), this forces
30 // PushFilePreparer to always push the executable to the destination, so that the Java test can
31 // easily locate the executable with a constant path.
32 name: "open_then_run_module",
33 stem: "open_then_run",
34
Victor Hsiehae67d3b2021-10-19 12:59:42 -070035 crate_name: "open_then_run",
36 srcs: ["open_then_run.rs"],
37 edition: "2018",
38 rustlibs: [
39 "libandroid_logger",
40 "libanyhow",
41 "libclap",
42 "libcommand_fds",
43 "liblog_rust",
Victor Hsieh0e8976f2021-11-05 16:54:24 +000044 "libnix",
Victor Hsiehae67d3b2021-10-19 12:59:42 -070045 ],
46 test_suites: ["general-tests"],
47 test_harness: false,
48}