From e0c708a906655680977061a360a4c2348cd1626b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 3 Oct 2000 23:49:57 +0000 Subject: Add in some more test suite stuff. -Erik --- test/Makefile | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) (limited to 'test') 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 "-------" -- cgit v1.2.3