blob: 0b894f84a4b34d68098a232de2258e511a5be253 [file] [log] [blame]
# 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.
# Tests for the GN SDK contents.
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/testing/test_spec.gni")
group("tests") {
testonly = true
public_deps = [
":gn_sdk_script_tests($host_toolchain)",
":host_gn_sdk_test($host_toolchain)",
]
}
# Only build this for host targets
if (is_linux || is_mac) {
go_library("host_gnsdk_test_lib") {
name = "gnsdktest"
}
# Wrapper for running the Python unit tests
go_test("host_gn_sdk_test") {
gopackages = [ "gnsdktest" ]
deps = [ ":host_gnsdk_test_lib" ]
args = [ "-testscript=" + rebase_path("test_generate.py") ]
}
# Wrapper for all bash tests
go_test("gn_sdk_script_tests") {
gopackages = [ "gnsdktest" ]
deps = [ ":host_gnsdk_test_lib" ]
args = [ "-testscript=" + rebase_path("bash_tests/run_bash_tests.sh") ]
}
}