diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-09-21 05:25:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-09-21 05:25:52 +0000 |
commit | 18660a34b0ec692fb54127131f9991be45e1bda8 (patch) | |
tree | 7ddff0df4082cfc2780342371adea5af5f9d02fe /test/unistd/Makefile | |
parent | aaaab475d7e67af362d4597c9d26553a0f80ae01 (diff) | |
download | uClibc-alpine-18660a34b0ec692fb54127131f9991be45e1bda8.tar.bz2 uClibc-alpine-18660a34b0ec692fb54127131f9991be45e1bda8.tar.xz |
Add in a simple vfork test
Diffstat (limited to 'test/unistd/Makefile')
-rw-r--r-- | test/unistd/Makefile | 24 |
1 files changed, 23 insertions, 1 deletions
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) |