blob: d5adea3b12002c55051d240a2b99dcac49a4df98 [file] [log] [blame]
/*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
python_library_host {
name: "mobly_device_flags",
srcs: ["tools/device_flags.py"],
libs: [
"libaconfig_python_proto",
"mobly",
],
pkg_path: "mobly",
}
python_test_host {
name: "mobly_device_flags_test",
srcs: ["tools/device_flags_test.py"],
main: "tools/device_flags_test.py",
libs: [
"libaconfig_python_proto",
"mobly_device_flags",
],
}
// Tool to upload Mobly test results to Resultstore.
// If releasing as new version "x.y", rename the generated zip file to
// "results_uploader_x_y.zip".
genrule {
name: "mobly_results_uploader",
tools: ["soong_zip"],
srcs: ["tools/results_uploader/**/*"],
cmd: "RESULTS_UPLOADER=tools/test/mobly_extensions/tools/results_uploader;" +
"$(location soong_zip) -o $(out) -C $${RESULTS_UPLOADER} -D $${RESULTS_UPLOADER};",
out: ["results_uploader.zip"],
}