| # Copyright 2020 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| import("//build/python/python_binary.gni") | |
| import("//build/testing/host_test_data.gni") | |
| assert(is_host, "python only supported in host toolchains") | |
| host_test_data("black") { | |
| sources = [ "//prebuilt/third_party/black/${host_platform}/black" ] | |
| } | |
| host_test_data("interpreter") { | |
| sources = [ | |
| "//prebuilt/third_party/python3/${host_platform}/lib", | |
| python_exe_src, | |
| ] | |
| } | |
| host_test_data("pip") { | |
| sources = [ | |
| "//prebuilt/third_party/python3/${host_platform}/lib", | |
| pip_exe_src, | |
| ] | |
| } | |
| group("host_tests") { | |
| testonly = true | |
| deps = [ | |
| "tests/assembly:tests", | |
| "tests/bin", | |
| "tests/depfile:tests", | |
| "tests/host_test:py_host_test_with_lib", | |
| "tests/lib", | |
| "tests/serialization:tests", | |
| ] | |
| } | |
| python_binary("compress_lacewing_inputs") { | |
| main_source = "compress_lacewing_inputs.py" | |
| } | |
| python_binary("python_hermetic_concatenate") { | |
| enable_mypy = true | |
| main_source = "python_hermetic_concatenate.py" | |
| } | |
| python_binary("package_python_wheel") { | |
| enable_mypy = true | |
| main_source = "package_python_wheel.py" | |
| deps = [ "//build/python/modules/depfile" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":host_tests", | |
| "tests/bin", | |
| "tests/lib", | |
| ] | |
| } |