From: Subrata <sub...@us...> - 2009-07-06 15:46:04
|
Update of /cvsroot/ltp/ltp/testcases/kernel In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7394/ltp/testcases/kernel Modified Files: Makefile Log Message: cgroups: conditionally enable building cgroup tests: controllers tests gets included into default ltp build if "/proc/cgroup" exists. It stops the ltp build in realtime kernel environment where kernel is new and supports cgroups, but necessary file "linux/cgroupstats.h" may not exist in the base OS (like RHEL5.3). So configure command enables the build, but actual build fails, due to missing header file. Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for header file "linux/cgroupstats.h" and include controllers in the list of tests to build. Tested the patch in non-RT as well as RT environment for the changes. Signed-off-by: Gowrishankar <gow...@in...>. Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/Makefile,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Makefile 26 Feb 2009 11:32:30 -0000 1.19 --- Makefile 6 Jul 2009 15:34:10 -0000 1.20 *************** *** 1,5 **** ! SUBDIRS = power_management numa containers controllers connectors include fs io ipc mem pty sched security syscalls timers UCLINUX_SUBDIRS = include syscalls all: @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done --- 1,11 ---- ! include ../../config.mk ! ! SUBDIRS = power_management numa containers connectors include fs io ipc mem pty sched security syscalls timers UCLINUX_SUBDIRS = include syscalls + ifeq ($(LTP_CHECK_CGROUPSTATS_HEADER),yes) + SUBDIRS+= controllers + endif + all: @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done |