From 0d1013082a9f7d867e9782a24c672d165359805e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 7 Aug 2002 12:47:11 +0000 Subject: getopt tests --- test/unistd/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'test/unistd/Makefile') diff --git a/test/unistd/Makefile b/test/unistd/Makefile index 251f4c78e..360392612 100644 --- a/test/unistd/Makefile +++ b/test/unistd/Makefile @@ -21,7 +21,7 @@ include $(TESTDIR)/Rules.mak -TARGETS=fork fork_glibc vfork vfork_glibc getcwd +TARGETS=fork fork_glibc vfork vfork_glibc getcwd getopt getopt_long all: $(TARGETS) getcwd: getcwd.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) @@ -79,6 +79,20 @@ vfork_glibc: vfork.c ../testsuite.h Makefile -./$@ -@ echo " " +getopt: getopt.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + ./$@ -abcXXX -9 + -@ echo " " + +getopt_long: getopt_long.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC) + $(CC) $(CFLAGS) -c $< -o $@.o + $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + ./$@ --add XXX --delete YYY --verbose + -@ echo " " + clean: rm -f *.[oa] *~ core $(TARGETS) -- cgit v1.2.3