blob: e645b1299eb95f957ef293040e3d29756d7e0ccc [file] [log] [blame]
# Copyright 2018 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/fuzzing/fuzzer.gni")
import("//build/package.gni")
import("//build/test.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
source_set("lib") {
public_deps = [
"datagram_stream:lib",
"endpoint:lib",
"environment:lib",
"labels:lib",
"links:lib",
"packet_protocol:lib",
"protocol:lib",
"routing:lib",
"stats:lib",
"vocabulary:lib",
]
}
test("overnet_unittests") {
deps = [
"datagram_stream:tests",
"endpoint:tests",
"environment:tests",
"labels:tests",
"links:tests",
"omdp:tests",
"packet_protocol:tests",
"protocol:tests",
"routing:tests",
"testing:run_all_tests",
"testing:tests",
"vocabulary:tests",
]
}
test_package("overnet_tests") {
deps = [
":overnet_unittests",
]
tests = [
{
name = "overnet_unittests"
environments = basic_envs
},
]
}
fuzzers_package("overnet_fuzzers") {
fuzzers = [
"datagram_stream:linearizer_fuzzer",
"datagram_stream:receive_mode_fuzzer",
"links:packet_nub_connection_fuzzer",
"links:packet_nub_fuzzer",
"links:stream_link_untrusted_fuzzer",
"links:stream_link_peer_to_peer_fuzzer",
"packet_protocol:packet_protocol_fuzzer",
"protocol:ack_frame_fuzzer",
"protocol:overnet_encoding_fuzzer",
"protocol:overnet_decoding_fuzzer",
"protocol:routable_message_fuzzer",
"routing:routing_table_fuzzer",
"vocabulary:internal_list_fuzzer",
]
sanitizers = [ "asan" ]
fuzz_host = true
generated_test_package = "overnet_fuzzer_tests"
}