blob: ed0973db256d27f67d1e14c2c1680ddff1745c33 [file] [edit]
# 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"
}
group("tests") {
testonly = true
deps = [
":host_tests",
"tests/bin",
"tests/lib",
]
}