blob: 0ab22aac359313aedf418ce70ba7d6fb2da2a025 [file] [log] [blame]
# Copyright 2019 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")
import("//build/test.gni")
test("int-types") {
output_name = "int-types-test"
sources = [
"int-types.c",
"int-types.cc",
"wchar-type.c",
"wchar-type.cc",
]
configs += [ ":config" ]
deps = [
"//sdk/lib/fdio",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zxtest",
]
}
config("config") {
visibility = [ ":*" ]
# The C file here uses a macro to detect whether a type is signed, by
# comparing the values of -1 and 0. This leads to complaints about
# vacuously true comparisons, which we don't care about.
cflags = [ "-Wno-type-limits" ]
}
fuchsia_unittest_package("int-types-test-pkg") {
package_name = "int-types-test"
deps = [ ":int-types" ]
}
group("tests") {
testonly = true
deps = [ ":int-types-test-pkg" ]
}