From: Paul Moore To: Stephen Smalley Subject: Re: [PATCH v2] selinux-testsuite: split testcase list for rhel-6. Date: Fri, 06 Feb 2015 17:33:16 -0500 Message-ID: <47448418.ODtckat6ZG@sifl> In-Reply-To: <1423159221-13804-1-git-send-email-sds@tycho.nsa.gov> References: <1423159221-13804-1-git-send-email-sds@tycho.nsa.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: selinux@tycho.nsa.gov List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On Thursday, February 05, 2015 01:00:21 PM Stephen Smalley wrote: > The NNP test will not work on rhel-6, so split off a separate > testcase list for rhel-6 as we have previously done for rhel-5 and 4. > Simplify maintenance by introducing a SUBDIRS_COMMON variable with > the list of testcases shared by all. > > Signed-off-by: Stephen Smalley > --- > tests/Makefile | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) Merged, but needs another patch which I'll be posting shortly. It turns out that the "redhat-release" package is not consistent across RHEL releases. > diff --git a/tests/Makefile b/tests/Makefile > index 4cfecdf..3838e14 100644 > --- a/tests/Makefile > +++ b/tests/Makefile > @@ -1,14 +1,19 @@ > REDHAT_RELEASE=$(shell rpm -q redhat-release) > > -SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_trans > fdreceive inherit link mkdir msg nnp open ptrace readlink relabel rename > rxdir sem setattr setnice shm sigkill stat sysctl task_create task_setnice > task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid > wait file ioctl capable_file capable_net capable_sys dyntrans dyntrace > bounds -#SUBDIRS=socket unix_socket unix_secure > +SUBDIRS_COMMON:=domain_trans entrypoint execshare exectrace > execute_no_trans fdreceive inherit link mkdir msg open ptrace readlink > relabel rename rxdir sem setattr setnice shm sigkill stat sysctl > task_create task_setnice task_setscheduler task_getscheduler task_getsid > task_getpgid task_setpgid wait file ioctl capable_file capable_net > capable_sys + > +SUBDIRS:= $(SUBDIRS_COMMON) dyntrans dyntrace bounds nnp > > ifeq (redhat-release-4, $(findstring redhat-release-4, $(REDHAT_RELEASE))) > - SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_trans > fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir > sem setattr setnice shm sigkill stat sysctl task_create task_setnice > task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid > wait file ioctl capable_file capable_net capable_sys + > SUBDIRS:=$(SUBDIRS_COMMON) > endif > > ifeq (redhat-release-5, $(findstring redhat-release-5, $(REDHAT_RELEASE))) > - SUBDIRS=domain_trans entrypoint execshare exectrace execute_no_trans > fdreceive inherit link mkdir msg open ptrace readlink relabel rename rxdir > sem setattr setnice shm sigkill stat sysctl task_create task_setnice > task_setscheduler task_getscheduler task_getsid task_getpgid task_setpgid > wait file ioctl capable_file capable_net capable_sys dyntrace dyntrans + > SUBDIRS:=$(SUBDIRS_COMMON) dyntrace dyntrans > +endif > + > +ifeq (redhat-release-6, $(findstring redhat-release-6, $(REDHAT_RELEASE))) > + SUBDIRS:=$(SUBDIRS_COMMON) dyntrace dyntrans bounds > endif > > .PHONY: all test clean -- paul moore security @ redhat