blob: 17d71dfa15a3ff19e467c2241eb0a918ce34e427 [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.
import("//build/package.gni")
executable("gtest_runner_sample_tests") {
testonly = true
sources = [ "sample_tests.cc" ]
deps = [
"//garnet/public/lib/gtest",
"//src/lib/fxl/test:gtest_main",
]
}
executable("gtest_runner_no_tests") {
testonly = true
sources = [ "empty_test_file.cc" ]
deps = [
"//garnet/public/lib/gtest",
"//src/lib/fxl/test:gtest_main",
]
}
executable("echo_gtest_client") {
output_name = "echo_gtest_client_example"
testonly = true
sources = [ "echo_test.cc" ]
deps = [
"//examples/components/routing/fidl:echo",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//src/lib/fxl/test:gtest_main",
"//zircon/public/lib/async-default",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
]
}
executable("huge_gtest_runner_example") {
output_name = "huge_gtest_runner_example"
testonly = true
sources = [ "huge_gtest.cc" ]
deps = [ "//src/lib/fxl/test:gtest_main" ]
}
group("test_data") {
testonly = true
public_deps = [
":echo_gtest_client",
":gtest-runner-example-tests",
":gtest_runner_no_tests",
":gtest_runner_sample_tests",
":huge_gtest_runner_example",
]
}
package("gtest-runner-example-tests") {
testonly = true
deps = [
":echo_gtest_client",
":gtest_runner_no_tests",
":gtest_runner_sample_tests",
":huge_gtest_runner_example",
"//examples/components/routing/echo_server",
]
binaries = [
{
name = "gtest_runner_sample_tests"
dest = "sample_tests"
},
{
name = "gtest_runner_no_tests"
dest = "empty_test"
},
{
name = "echo_server"
},
{
name = "echo_gtest_client_example"
dest = "echo_gtest_client"
},
{
name = "huge_gtest_runner_example"
dest = "huge_gtest"
},
]
meta = [
{
path = rebase_path("meta/sample_tests.cml")
dest = "sample_tests.cm"
},
{
path = rebase_path("meta/empty_test.cml")
dest = "empty_test.cm"
},
{
path = "meta/echo_test_realm.cml"
dest = "echo_test_realm.cm"
},
{
path = "meta/echo_gtest_client.cml"
dest = "echo_gtest_client.cm"
},
{
path = rebase_path("//examples/components/routing/meta/echo_server.cml")
dest = "echo_server.cm"
},
{
path = "meta/huge_gtest.cml"
dest = "huge_gtest.cm"
},
]
}