tests: exclude vsock_socket test where it wouldn't build
PATCH 1/1 tests: exclude vsock_socket test where it wouldn't build
The test requires the <linux/vm_sockets.h> header to be available and contain th definition for VMADDR_CID_LOCAL, so wrap it under a check for these preconditions.
Without this patch the testsuite wouldn't build on RHEL-7 and earlier.
Signed-off-by Ondrej Mosnacek <[email protected]>
--- tests/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
tests/Makefile +5 -1
@@ -27,7 +27,7 @@ SUBDIRS:= domain_trans entrypoint execshare exectrace execute_no_trans \ task_setnice task_setscheduler task_getscheduler task_getsid \ task_getpgid task_setpgid file ioctl capable_file capable_net \ capable_sys dyntrans dyntrace bounds nnp_nosuid mmap unix_socket \ - inet_socket overlay checkreqprot mqueue mac_admin atsecure vsock_socket + inet_socket overlay checkreqprot mqueue mac_admin atsecure ifeq ($(shell grep -q cap_userns $(POLDEV)/include/support/all_perms.spt && echo true),true) ifneq ($(shell ./kvercmp $$(uname -r) 4.7),-1)
@@ -141,6 +141,10 @@ SUBDIRS += userfaultfd endif endif +ifeq ($(shell grep -qs VMADDR_CID_LOCAL $(INCLUDEDIR)/linux/vm_sockets.h && echo true),true) +SUBDIRS += vsock_socket +endif + ifeq ($(DISTRO),RHEL4) SUBDIRS:=$(filter-out bounds dyntrace dyntrans inet_socket mmap nnp_nosuid overlay unix_socket, $(SUBDIRS)) endif
Signature · 1 line
2.31.1