blob: 684925ebfe20f961409a82c1b7e1279b3e2fa652 [file] [edit]
# Copyright 2026 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/go/go_binary.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
go_library("mobly_test_parser_lib") {
sources = [
"moblytest.go",
"moblytest_test.go",
]
deps = [
"//third_party/golibs:gopkg.in/yaml.v2",
"//tools/testing/runtests",
]
}
group("tests") {
testonly = true
deps = [ ":mobly_test_parser_lib_tests" ]
}
go_test("mobly_test_parser_lib_tests") {
embed = [ ":mobly_test_parser_lib" ]
deps = [ "//third_party/golibs:github.com/google/go-cmp" ]
}
go_library("main") {
source_dir = "cmd"
sources = [ "main.go" ]
deps = [
":mobly_test_parser_lib",
"//tools/testing/testrunner:constants",
]
}
go_binary("mobly_test_parser") {
embed = [ ":main" ]
}