blob: 296f7654fc4ce7ee3aedd463790f94e42143e4ec [file] [log] [blame]
# Copyright 2016 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/components.gni")
executable("libc-tests") {
testonly = true
sources = [ "main.cc" ]
deps = [
"//third_party/googletest:gtest",
"//third_party/libc-tests/third_party/nacl-ported-tests/abi:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/bigalloc:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/dup:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/dynamic_linking:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/libc:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/longjmp:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/math:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/nanosleep:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/pwrite:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/redir:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/sleep:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/stdargs:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/syscalls:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/threads:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/tls:small_tests",
]
}
executable("libc-tests-broken") {
testonly = true
sources = [ "main.cc" ]
deps = [
"//third_party/googletest:gtest",
"//third_party/libc-tests/third_party/nacl-ported-tests/fdopen_test:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/file:small_tests",
"//third_party/libc-tests/third_party/nacl-ported-tests/syscalls:small_tests_broken",
"//third_party/libc-tests/third_party/nacl-ported-tests/threads:large_tests_broken",
"//third_party/libc-tests/third_party/nacl-ported-tests/threads:small_tests_broken",
]
}
executable("libc-large-tests") {
testonly = true
sources = [ "main.cc" ]
deps = [
"//third_party/googletest:gtest",
"//third_party/libc-tests/third_party/nacl-ported-tests/libc:large_tests",
]
}
fuchsia_unittest_component("libc-tests-component") {
component_name = "libc-tests"
manifest = "meta/libc-tests.cmx"
deps = [ ":libc-tests" ]
}
fuchsia_unittest_component("libc-large-tests-component") {
component_name = "libc-large-tests"
deps = [ ":libc-large-tests" ]
}
fuchsia_unittest_component("libc-tests-broken-component") {
component_name = "libc-tests-broken"
manifest = "meta/libc-tests-broken.cmx"
deps = [ ":libc-tests-broken" ]
}
resource("nacl-libc-tests-resources") {
sources = [ "third_party/nacl-ported-tests/fdopen_test/fdopen_testdata" ]
outputs = [ "data/testdata/fdopen_testdata" ]
}
fuchsia_test_package("nacl-libc-tests") {
test_components = [
":libc-tests-component",
":libc-large-tests-component",
":libc-tests-broken-component",
]
deps = [ ":nacl-libc-tests-resources" ]
}