aboutsummaryrefslogtreecommitdiff
path: root/testcases/Makefile
diff options
context:
space:
mode:
authoryaberauneya <yaberauneya>2009-10-09 17:55:43 +0000
committeryaberauneya <yaberauneya>2009-10-09 17:55:43 +0000
commitef77253961f909f87e82e6d2b620e87af33e9665 (patch)
tree7b2efccc437c2dd915dc97ccc10d97c3900a8503 /testcases/Makefile
parent971c9e8bd376597750794de1dbfb939ba9be5ae0 (diff)
1. Please see README.mk-devel for a full description of the changes
from a Make perspective. 2. Several files were changed to accomodate correct installation practices, most notably ones in testcases/network/{ipv6,tcp_cmds}, testcases/kernel/sched/hyperthreading/ht_enabled/..., and some items in tools/..., and also to avoid collisions as far as installed testcases (scripts, compiled C apps) were concerned. 3. Several apps weren't autoconf safe and some autoconf tests and conditional statements have been placed in sourcecode and in Makefiles to either a) prevent the tests from being built / installed or b) turn the tests into dummy apps which print out TCONF messages due to lack-of-build support. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'testcases/Makefile')
-rw-r--r--testcases/Makefile57
1 files changed, 41 insertions, 16 deletions
diff --git a/testcases/Makefile b/testcases/Makefile
index 076307053..9783d9d25 100644
--- a/testcases/Makefile
+++ b/testcases/Makefile
@@ -1,21 +1,46 @@
- SUBDIRS = `ls */Makefile | sed "s/Makefile//g" | grep -v open | grep -v pounder | grep -v DOTS | grep -v kdump | grep -v realtime | grep -v audit-test | grep -v mce-test`
-UCLINUX_SUBDIRS = kernel
-all:
- @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
+#
+# testcases Makefile.
+#
+# Copyright (C) 2009, Cisco Systems Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Garrett Cooper, July 2009
+#
-install:
- mkdir -p bin
- @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install ; done
+top_srcdir ?= ..
-uclinux:
- @set -e; for i in $(UCLINUX_SUBDIRS); do $(MAKE) -C $$i uclinux; done
+include $(top_srcdir)/include/mk/env_pre.mk
-uclinux_install:
- mkdir -p bin
- @set -e; for i in $(UCLINUX_SUBDIRS); \
- do $(MAKE) -C $$i uclinux_install ; done
+# XXX (garrcoop):
+# 1. mce-test doesn't fit cleanly in the build, yet.
+# 2. pounder21 is just broken.
+FILTER_OUT_DIRS := mce-test pounder21
-clean:
- rm -rf bin/
- @set -e; for i in $(SUBDIRS) ; do $(MAKE) -C $$i clean ; done
+# ballista needs to be fixed so that out-of-build-tree support functions
+# properly.
+ifneq ($(abs_builddir),$(abs_srcdir))
+FILTER_OUT_DIRS += $(if $(OUT_OF_BUILD_TREE),ballista)
+endif
+# XXX (garrcoop): Not sure why realtime is still in this list; this was the
+# original list of disabled items...
+ifneq ($(UCLINUX),1)
+FILTER_OUT_DIRS += audit-test DOTS kdump open% realtime
+else
+SUBDIRS := kernel
+endif
+
+include $(top_srcdir)/include/mk/generic_trunk_target.mk