summaryrefslogtreecommitdiff
path: root/test/unistd/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-02 15:12:12 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-02 15:12:12 +0000
commitd7ea5282bb07e875cf0f74fda018c528fc0a145d (patch)
treeaf19f068f7e6dc32f757cb869788ae9d190f1595 /test/unistd/Makefile
parent6c1fb5e17c2fb7db14e2d01f9afe150c588313b2 (diff)
new testcase for clone()
Diffstat (limited to 'test/unistd/Makefile')
-rw-r--r--test/unistd/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/unistd/Makefile b/test/unistd/Makefile
index 0f972f956..cd3a84fbf 100644
--- a/test/unistd/Makefile
+++ b/test/unistd/Makefile
@@ -54,6 +54,28 @@ fork_glibc: fork.c ../testsuite.h Makefile
./$@
-@ echo " "
+clone: clone.c ../testsuite.h 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 " "
+
+clone_glibc: clone.c ../testsuite.h 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 $@
+ ./$@
+ -@ echo " "
+
vfork: vfork.c ../testsuite.h Makefile $(TESTDIR)/Rules.mak
-@ echo "-------"
-@ echo " "