Skip to content

Commit

Permalink
[Thinkit] Add test case checking that no packets reach CPU in pristin…
Browse files Browse the repository at this point in the history
…e state.
  • Loading branch information
smolkaj authored and divyagayathri-hcl committed Nov 27, 2024
1 parent 421ecac commit b42fbe1
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 109 deletions.
15 changes: 5 additions & 10 deletions tests/qos/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cc_library(
"//gutil:testing",
"//lib:ixia_helper",
"//lib/gnmi:gnmi_helper",
"//lib/gnmi:openconfig_cc_proto",
"//lib/p4rt:packet_listener",
"//lib/validator:validator_lib",
"//p4_pdpi:ir",
Expand All @@ -59,9 +60,11 @@ cc_library(
"//thinkit:mirror_testbed_fixture",
"//thinkit:switch",
"//thinkit/proto:generic_testbed_cc_proto",
"@com_github_gnmi//proto/gnmi:gnmi_cc_proto",
"@com_github_google_glog//:glog",
"@com_github_nlohmann_json//:nlohmann_json",
"@com_github_p4lang_p4runtime//:p4info_cc_proto",
"@com_github_p4lang_p4runtime//:p4runtime_cc_proto",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
Expand All @@ -72,6 +75,7 @@ cc_library(
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:optional",
"@com_google_googletest//:gtest",
"@com_google_protobuf//:protobuf",
],
alwayslink = True,
)
Expand Down Expand Up @@ -99,8 +103,8 @@ cc_library(
srcs = ["gnmi_parsers.cc"],
hdrs = ["gnmi_parsers.h"],
deps = [
":openconfig_cc_proto",
"//gutil:overload",
"//lib/gnmi:openconfig_cc_proto",
"//p4_pdpi/netaddr:ipv4_address",
"//p4_pdpi/netaddr:ipv6_address",
"@com_google_absl//absl/status",
Expand Down Expand Up @@ -128,12 +132,3 @@ cmd_diff_test(
tools = [":gnmi_parsers_test_runner"],
)

proto_library(
name = "openconfig_proto",
srcs = ["openconfig.proto"],
)

cc_proto_library(
name = "openconfig_cc_proto",
deps = [":openconfig_proto"],
)
Loading

0 comments on commit b42fbe1

Please sign in to comment.