summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-03 23:49:57 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-03 23:49:57 +0000
commite0c708a906655680977061a360a4c2348cd1626b (patch)
tree9305c8286c934c9e28693ba3cd122f9c3b95b50e
parent4c89e03a79fe3e845c6c1cd2343a30552cda933f (diff)
Add in some more test suite stuff.
-Erik
-rw-r--r--test/Makefile50
1 files changed, 47 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index 39c35acb9..ddc53a5e9 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -19,12 +19,56 @@ ifndef $(STRIPTOOL)
endif
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $@
-TARGETS=hello_source hello_glibc hello
-TARGETS+=testmalloc_source testmalloc_glibc testmalloc
-TARGETS+=teststrtol_source teststrtol_glibc teststrtol teststrtol_diff
+TARGETS=string string_glibc
+TARGETS+=ctype ctype_glibc
+#TARGETS+=hello_source hello hello_glibc
+#TARGETS+=testmalloc_source testmalloc testmalloc_glibc
+#TARGETS+=teststrtol_source teststrtol teststrtol_glibc teststrtol_diff
all: $(TARGETS)
+string: string.c Makefile $(TOPDIR)libc.a
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Testing ctype functions: "
+ -@ echo " "
+ $(CC) $(XCFLAGS) -c $< -o $@.o
+ $(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ -./$@
+ -@ echo " "
+
+string_glibc: string.c testsuite.h Makefile $(TOPDIR)libc.a
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Testing string functions: "
+ -@ echo " "
+ $(CC) $(YCFLAGS) -c $< -o $@.o
+ $(CC) $(YLDFLAGS) --static $@.o -o $@
+ -./$@
+ -./$@
+ -@ echo " "
+
+ctype: ctype.c testsuite.h Makefile $(TOPDIR)libc.a
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Testing ctype functions: "
+ -@ echo " "
+ $(CC) $(XCFLAGS) -c $< -o $@.o
+ $(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ -./$@
+ -@ echo " "
+
+ctype_glibc: ctype.c testsuite.h Makefile $(TOPDIR)libc.a
+ -@ echo "-------"
+ -@ echo " "
+ -@ echo "Testing ctype functions: "
+ -@ echo " "
+ $(CC) $(YCFLAGS) -c $< -o $@.o
+ $(CC) $(YLDFLAGS) --static $@.o -o $@
+ -./$@
+ -./$@
+ -@ echo " "
+
hello_source:
-@ rm -f $(TARGETS)
-@ echo "-------"