summaryrefslogtreecommitdiff
path: root/test/malloc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-02 15:36:20 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-02 15:36:20 +0000
commit21b51772edd7f5b993f5ceec97a69dfc8462e63a (patch)
tree7b71f27e6d75aa9a68a3800ccddfb412ffd13e3c /test/malloc
parent06134db0038580fd77e73d66ed1b8bd20900f57f (diff)
new testing framework to unify duplicated code in subdirs
Diffstat (limited to 'test/malloc')
-rw-r--r--test/malloc/Makefile128
1 files changed, 5 insertions, 123 deletions
diff --git a/test/malloc/Makefile b/test/malloc/Makefile
index d77238bed..a05b3aae1 100644
--- a/test/malloc/Makefile
+++ b/test/malloc/Makefile
@@ -1,125 +1,7 @@
-# Makefile for uClibc
-#
-# Copyright (C) 2000,2001 Erik Andersen <andersen@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
+# uClibc malloc tests
+# Licensed under the GNU Library General Public License, see COPYING.LIB
-include ../Rules.mak
+TESTS = malloc mallocbug realloc0 testmalloc
+#time_malloc
-TARGETS=malloc
-TARGETS+=testmalloc testmalloc_glibc
-TARGETS+=mallocbug mallocbug_glibc
-TARGETS+=realloc0 realloc0_glibc
-all: $(TARGETS)
-
-malloc: malloc.c Makefile $(TESTDIR)/Rules.mak
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs uClibc: "
- -@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
- $(STRIPTOOL) -x -R .note -R .comment $@
- ./$@
- -@ echo " "
-
-testmalloc_source:
- -@ echo "-------"
- -@ echo "testmalloc.c source: "
- -@ echo " "
- -@ cat testmalloc.c
- -@ echo " "
-
-testmalloc: testmalloc.c Makefile $(TESTDIR)/Rules.mak
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs uClibc: "
- -@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
- $(STRIPTOOL) -x -R .note -R .comment $@
- -$(LDD) $@
- ls -l $@
- ./$@
- -@ echo " "
-
-testmalloc_glibc: testmalloc.c Makefile
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs glibc: "
- -@ echo " "
- $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
- $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
- $(STRIPTOOL) -x -R .note -R .comment $@
- -$(LDD) $@
- ls -l $@
- ./$@
- -@ echo " "
-
-mallocbug: mallocbug.c Makefile $(TESTDIR)/Rules.mak
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs uClibc: "
- -@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
- $(STRIPTOOL) -x -R .note -R .comment $@
- -$(LDD) $@
- ls -l $@
- ./$@
- -@ echo " "
-
-mallocbug_glibc: mallocbug.c Makefile
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs glibc: "
- -@ echo " "
- $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
- $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
- $(STRIPTOOL) -x -R .note -R .comment $@
- -$(LDD) $@
- ls -l $@
- ./$@
- -@ echo " "
-
-realloc0: realloc0.c Makefile $(TESTDIR)/Rules.mak
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs uClibc: "
- -@ echo " "
- $(CC) $(CFLAGS) -c $< -o $@.o
- $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
- $(STRIPTOOL) -x -R .note -R .comment $@
- -$(LDD) $@
- ls -l $@
- ./$@
- -@ echo " "
-
-realloc0_glibc: realloc0.c Makefile
- -@ echo "-------"
- -@ echo " "
- -@ echo "Compiling $@ vs glibc: "
- -@ echo " "
- $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
- $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
- $(STRIPTOOL) -x -R .note -R .comment $@
- -$(LDD) $@
- ls -l $@
- ./$@
- -@ echo " "
-
-
-clean:
- $(RM) *.[oa] *~ core $(TARGETS)
+include ../Test.mak