mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
42 lines
816 B
Python
42 lines
816 B
Python
load("//tools:defs.bzl", "go_binary", "go_test")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_binary(
|
|
name = "gvisor2pcap",
|
|
srcs = [
|
|
"main.go",
|
|
],
|
|
features = ["fully_static_link"],
|
|
deps = [
|
|
"//pkg/buffer",
|
|
"//pkg/log",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/header",
|
|
"//pkg/tcpip/link/sniffer",
|
|
"//pkg/tcpip/stack",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "gvisor2pcap_test",
|
|
srcs = ["gvisor2pcap_test.go"],
|
|
data = [
|
|
"wget.log",
|
|
"wget6.log",
|
|
":gvisor2pcap",
|
|
],
|
|
deps = [
|
|
"//pkg/buffer",
|
|
"//pkg/log",
|
|
"//pkg/tcpip",
|
|
"//pkg/tcpip/header",
|
|
"//pkg/tcpip/link/sniffer",
|
|
"//pkg/tcpip/stack",
|
|
"//pkg/test/testutil",
|
|
],
|
|
)
|