github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/client/testutil/driver_compatible_default.go (about) 1 //go:build !linux 2 3 package testutil 4 5 import ( 6 "testing" 7 ) 8 9 // CgroupsCompatible returns false on non-Linux operating systems. 10 func CgroupsCompatible(t *testing.T) { 11 t.Skipf("Test requires cgroups support on Linux") 12 } 13 14 // CgroupsCompatibleV1 skips tests on non-Linux operating systems. 15 func CgroupsCompatibleV1(t *testing.T) { 16 t.Skipf("Test requires cgroup.v1 support on Linux") 17 } 18 19 // CgroupsCompatibleV2 skips tests on non-Linux operating systems. 20 func CgroupsCompatibleV2(t *testing.T) { 21 t.Skipf("Test requires cgroup.v2 support on Linux") 22 }