svn commit: trunk/uClibc/test
vapier at uclibc.org
vapier at uclibc.org
Wed Feb 15 00:46:33 UTC 2006
Author: vapier
Date: 2006-02-14 16:46:32 -0800 (Tue, 14 Feb 2006)
New Revision: 14027
Log:
touchup output some more and add support for implicit TEST defining/disabling
Modified:
trunk/uClibc/test/Test.mak
Changeset:
Modified: trunk/uClibc/test/Test.mak
===================================================================
--- trunk/uClibc/test/Test.mak 2006-02-15 00:44:59 UTC (rev 14026)
+++ trunk/uClibc/test/Test.mak 2006-02-15 00:46:32 UTC (rev 14027)
@@ -1,21 +1,16 @@
# Common makefile rules for tests
#
-# Copyright (C) 2000,2001 Erik Andersen <andersen at uclibc.org>
+# Copyright (C) 2000-2006 Erik Andersen <andersen at uclibc.org>
#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU Library 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 Library General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Library General Public License
-# along with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ifeq ($(TESTS),)
+TESTS := $(patsubst %.c,%,$(wildcard *.c))
+endif
+ifneq ($(TESTS_DISABLED),)
+TESTS := $(filter-out $(TESTS_DISABLED),$(TESTS))
+endif
+
include ../Rules.mak
U_TARGETS := $(TESTS)
@@ -57,6 +52,7 @@
exec diff -u "$$uclibc_out" "$$glibc_out"
endef
define exec_test
+ $(showtest)
$(Q)\
$(WRAPPER) $(WRAPPER_$(patsubst %_glibc,%,$@)) \
./$@ $(OPTS) $(OPTS_$(patsubst %_glibc,%,$@)) &> "$@.out" ; \
@@ -72,7 +68,7 @@
endef
$(U_TARGETS):
- $(showtest)
+ $(showlink)
$(Q)$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -c $@.c -o $@.o
$(Q)$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LDFLAGS) $(LDFLAGS_$@)
ifeq ($(COMPILE_ONLY),)
@@ -81,7 +77,7 @@
endif
$(G_TARGETS):
- $(showtest)
+ $(showlink)
$(Q)$(HOSTCC) $(HOST_CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(patsubst %_glibc,%,$@)) -c $(patsubst %_glibc,%,$@).c -o $@.o
$(Q)$(HOSTCC) $(HOST_LDFLAGS) $@.o -o $@ $(EXTRA_LDFLAGS) $(LDFLAGS_$(patsubst %_glibc,%,$@))
ifeq ($(COMPILE_ONLY),)
More information about the uClibc-cvs
mailing list