From 18660a34b0ec692fb54127131f9991be45e1bda8 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 21 Sep 2001 05:25:52 +0000 Subject: Add in a simple vfork test --- test/unistd/Makefile | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'test/unistd/Makefile') diff --git a/test/unistd/Makefile b/test/unistd/Makefile index 49febf79a..faf716feb 100644 --- a/test/unistd/Makefile +++ b/test/unistd/Makefile @@ -3,7 +3,7 @@ include $(TESTDIR)/Rules.mak -TARGETS=fork fork_glibc +TARGETS=fork fork_glibc vfork vfork_glibc all: $(TARGETS) fork: fork.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) @@ -28,6 +28,28 @@ fork_glibc: fork.c ../testsuite.h Makefile -./$@ -@ echo " " +vfork: vfork.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + -@ 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 " " + +vfork_glibc: vfork.c ../testsuite.h Makefile + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs GNU libc: " + -@ echo " " + $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o + $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@ + $(STRIPTOOL) -x -R .note -R .comment $@ + -./$@ + -@ echo " " + clean: rm -f *.[oa] *~ core $(TARGETS) -- cgit v1.2.3