blob: ddb61720b5d1c02b7ee4a031a556d0f39c4f6238 [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/fuzzing/fuzzer.gni")
import("//build/test.gni")
group("tests") {
testonly = true
deps = [
":tftp-fuzzers",
":tftp-test-pkg",
]
}
test("tftp-test") {
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
output_name = "tftp-test"
sources = [
"tftp-file-test.cc",
"tftp-test.cc",
]
deps = [
"//sdk/lib/fdio",
"//zircon/public/lib/fbl",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/tftp",
]
include_dirs = [ ".." ]
}
fuzzer("tftp-fuzzer") {
sources = [ "tftp-fuzztest.cc" ]
deps = [
"//sdk/lib/fdio",
"//zircon/public/lib/fbl",
"//zircon/system/ulib/tftp",
]
include_dirs = [ ".." ]
}
fuzzers_package("tftp-fuzzers") {
cpp_fuzzers = [ ":tftp-fuzzer" ]
}
fuchsia_unittest_package("tftp-test-pkg") {
package_name = "tftp-test"
deps = [ ":tftp-test" ]
}