github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/link/syscalls_test.go (about)

     1  package link
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/cilium/ebpf/internal/testutils"
     7  )
     8  
     9  func TestHaveProgAttach(t *testing.T) {
    10  	testutils.CheckFeatureTest(t, haveProgAttach)
    11  }
    12  
    13  func TestHaveProgAttachReplace(t *testing.T) {
    14  	testutils.CheckFeatureTest(t, haveProgAttachReplace)
    15  }
    16  
    17  func TestHaveBPFLink(t *testing.T) {
    18  	testutils.CheckFeatureTest(t, haveBPFLink)
    19  }
    20  
    21  func TestHaveProgQuery(t *testing.T) {
    22  	testutils.CheckFeatureTest(t, haveProgQuery)
    23  }
    24  
    25  func TestHaveTCX(t *testing.T) {
    26  	testutils.CheckFeatureTest(t, haveTCX)
    27  }
    28  
    29  func TestHaveNetkit(t *testing.T) {
    30  	testutils.CheckFeatureTest(t, haveNetkit)
    31  }