about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-17 03:58:40 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-17 03:58:40 +0000
commitafc1d235b7f410d599ff75788194f40364d9ec64 (patch)
tree08971ecf163e2f0b35f5ec31fd1bdfdaaa0bd171
parentc293f9bc63423df702e38a0bf94378f063e5d293 (diff)
downloadglibc-afc1d235b7f410d599ff75788194f40364d9ec64.tar.gz
glibc-afc1d235b7f410d599ff75788194f40364d9ec64.tar.xz
glibc-afc1d235b7f410d599ff75788194f40364d9ec64.zip
(distribute): Add TESTS, TESTS2C.sed, and testcases.h.
(tests): Add runtests.
(before-compile): Add testcases.h.
(testcases.h): New rule to generate header with tests.
-rw-r--r--posix/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/posix/Makefile b/posix/Makefile
index 565561c57a..4f82eb89e2 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -27,7 +27,7 @@ headers	:= sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h	      \
 	   utsnamelen.h confname.h waitflags.h waitstatus.h sys/unistd.h      \
 	   sched.h schedbits.h re_comp.h wait.h
 
-distribute := confstr.h
+distribute := confstr.h TESTS TESTS2C.sed testcases.h
 
 routines :=								      \
 	uname								      \
@@ -49,12 +49,14 @@ routines :=								      \
 	getaddrinfo
 
 aux		:= init-posix environ
-tests		:= tstgetopt testfnm
+tests		:= tstgetopt testfnm runtests
 others		:= getconf
 install-bin	:= getconf
 install-lib	:= libposix.a
 gpl2lgpl := getopt.c getopt1.c getopt.h	regex.c regex.h
 
+before-compile := testcases.h
+
 include ../Rules
 
 CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes
@@ -62,6 +64,11 @@ CFLAGS-getaddrinfo.c = -DRESOLVER
 
 $(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
 lib: $(objpfx)libposix.a
+
+testcases.h: TESTS TESTS2C.sed
+	sed -f TESTS2C.sed < $< > $@T
+	mv -f $@T $@
+	test ! -d CVS || cvs commit -mRegenerated $@
 
 # Make the standalone glob/fnmatch package.