1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5java_test_host { 6 name: "AuthFsBenchmarks", 7 srcs: ["src/java/com/android/fs/benchmarks/*.java"], 8 libs: [ 9 "tradefed", 10 ], 11 static_libs: [ 12 "AuthFsHostTestCommon", 13 "MicrodroidHostTestHelper", 14 "cts-host-utils", 15 "MicrodroidTestPreparer", // Workaround for sandboxed test environment to install this 16 ], 17 test_suites: ["general-tests"], 18 data_device_bins_first: [ 19 "open_then_run", 20 ], 21 per_testcase_directory: true, 22 data: [ 23 ":authfs_test_files", 24 ":MicrodroidTestApp", 25 ], 26 required: ["MicrodroidTestPreparer"], 27} 28 29cc_binary { 30 name: "measure_io", 31 defaults: ["avf_build_flags_cc"], 32 srcs: [ 33 "src/measure_io.cpp", 34 ], 35 shared_libs: [ 36 "libbase", 37 ], 38} 39 40// Package measure_io binary into a jar, to bundle with the MicrodroidTestApp. 41// When MicrodroidTestApp is mounted inside the Microdroid, the zipfuse will 42// add the +x permission on it. 43java_genrule { 44 name: "measure_io_as_jar", 45 out: ["measure_io.jar"], 46 srcs: [ 47 ":measure_io", 48 ], 49 tools: ["soong_zip"], 50 cmd: "mkdir -p $(genDir)/bin" + 51 "&& cp $(in) $(genDir)/bin" + 52 "&& $(location soong_zip) -jar -o $(out) -C $(genDir) -D $(genDir)/bin", 53} 54