(distribute): Add globtest.c and globtest.sh.
authordrepper <drepper>
Mon, 15 Sep 1997 03:12:29 +0000 (03:12 +0000)
committerdrepper <drepper>
Mon, 15 Sep 1997 03:12:29 +0000 (03:12 +0000)
Compile and run globtest if not cross-compiling.

posix/Makefile

index 285f3b3..2b14fac 100644 (file)
@@ -28,7 +28,8 @@ headers       := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h          \
           bits/waitflags.h bits/waitstatus.h sys/unistd.h sched.h            \
           bits/sched.h re_comp.h wait.h
 
-distribute := confstr.h TESTS TESTS2C.sed testcases.h
+distribute := confstr.h TESTS TESTS2C.sed testcases.h \
+             globtest.c globtest.sh
 
 routines :=                                                                  \
        uname                                                                 \
@@ -60,6 +61,11 @@ before-compile       := testcases.h
 
 include ../Rules
 
+ifeq (no,$(cross-compiling))
+tests: $(objpfx)globtest
+       $(SHELL) -e globtest.sh $(common-objpfx)
+endif
+
 CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes
 CFLAGS-getaddrinfo.c = -DRESOLVER