Register extra test objects
authorAndreas Schwab <schwab@suse.de>
Wed, 13 Apr 2016 15:04:37 +0000 (17:04 +0200)
committerAndreas Schwab <schwab@suse.de>
Wed, 13 Apr 2016 15:07:13 +0000 (17:07 +0200)
This makes sure that the extra test objects are compiled with the correct
MODULE_NAME and dependencies are tracked.

ChangeLog
elf/Makefile
math/Makefile
nss/Makefile
stdlib/Makefile
sysdeps/x86_64/Makefile

index a32946a..f880712 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2016-04-13  Andreas Schwab  <schwab@suse.de>
+
+       * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
+       (test-extras): Add tst-tlsalign-vars.
+       * math/Makefile: Wrap long lines.
+       (libm-vec-test-wrappers): Define.
+       (test-extras): Add $(libm-vec-test-wrappers).
+       (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
+       * nss/Makefile (extra-test-objs): Add nss_test1.os.
+       * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
+       * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
+       tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
+       (extra-test-objs): Add corresponding objects.
+
 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #19928]
index bb23d93..210dde9 100644 (file)
@@ -170,8 +170,9 @@ tlsmod17a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 tlsmod18a-suffixes = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 tlsmod17a-modules = $(addprefix tst-tlsmod17a, $(tlsmod17a-suffixes))
 tlsmod18a-modules = $(addprefix tst-tlsmod18a, $(tlsmod17a-suffixes))
-extra-test-objs += $(tlsmod17a-modules:=.os) $(tlsmod18a-modules:=.os)
-test-extras += tst-tlsmod17a tst-tlsmod18a
+extra-test-objs += $(tlsmod17a-modules:=.os) $(tlsmod18a-modules:=.os) \
+                  tst-tlsalign-vars.o
+test-extras += tst-tlsmod17a tst-tlsmod18a tst-tlsalign-vars
 modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
                testobj1_1 failobj constload2 constload3 unloadmod \
                dep1 dep2 dep3 dep4 vismod1 vismod2 vismod3 \
index d440833..57c3ec1 100644 (file)
@@ -136,6 +136,9 @@ libm-tests = test-float test-double $(test-longdouble-$(long-double-fcts)) \
 libm-tests.o = $(addsuffix .o,$(libm-tests))
 
 tests += $(libm-tests)
+libm-vec-test-wrappers = $(addsuffix -wrappers, $(libm-vec-tests))
+test-extras += $(libm-vec-test-wrappers)
+extra-test-objs += $(addsuffix .o, $(libm-vec-test-wrappers))
 libm-tests-generated = libm-test-ulps.h libm-have-vector-test.h libm-test.c
 generated += $(libm-tests-generated) libm-test.stmp
 
@@ -300,10 +303,11 @@ $(objpfx)libieee.a: $(objpfx)ieee-math.o
        $(patsubst %/,cd % &&,$(objpfx)) \
        $(LN_S) $(<F) $(@F)
 
-$(addprefix $(objpfx),$(filter-out $(tests-static) $(libm-vec-tests),$(tests))): $(libm)
+$(addprefix $(objpfx),\
+           $(filter-out $(tests-static) $(libm-vec-tests),$(tests))): $(libm)
 $(addprefix $(objpfx),$(tests-static)): $(objpfx)libm.a
-$(addprefix $(objpfx), $(libm-vec-tests)): $(objpfx)%: $(objpfx)%-wrappers.o $(libm) \
-                                          $(libmvec)
+$(addprefix $(objpfx), $(libm-vec-tests)): $(objpfx)%: $(objpfx)%-wrappers.o \
+                                                      $(libm) $(libmvec)
 
 gmp-objs = $(patsubst %,$(common-objpfx)stdlib/%.o,\
                      add_n sub_n cmp addmul_1 mul_1 mul_n divmod_1 \
index b1693a8..1f016d9 100644 (file)
@@ -88,6 +88,7 @@ routines                += $(libnss_files-routines)
 static-only-routines    += $(libnss_files-routines)
 tests-static           += tst-nss-static
 endif
+extra-test-objs                += nss_test1.os
 
 include ../Rules
 
index d978774..e0eeada 100644 (file)
@@ -80,6 +80,7 @@ tests         := tst-strtol tst-strtod testmb testrand testsort testdiv   \
 tests-static   := tst-secure-getenv
 
 modules-names  = tst-tls-atexit-lib
+extra-test-objs += $(addsuffix .os, $(modules-names))
 
 ifeq ($(build-shared),yes)
 tests          += tst-putenv
index aa4a754..6d99284 100644 (file)
@@ -43,11 +43,15 @@ $(objpfx)tst-quad2: $(objpfx)tst-quadmod2.so
 quad-pie-test += tst-quad1pie tst-quad2pie
 tests += $(quad-pie-test)
 tests-pie += $(quad-pie-test)
+test-extras += tst-quadmod1pie tst-quadmod2pie
+extra-test-objs += tst-quadmod1pie.o tst-quadmod2pie.o
 
 $(objpfx)tst-quad1pie: $(objpfx)tst-quadmod1pie.o
 $(objpfx)tst-quad2pie: $(objpfx)tst-quadmod2pie.o
 
 tests += tst-audit3 tst-audit4 tst-audit5 tst-audit6 tst-audit7 tst-audit10
+test-extras += tst-audit4-aux tst-audit10-aux
+extra-test-objs += tst-audit4-aux.o tst-audit10-aux.o
 
 tests += tst-split-dynreloc
 LDFLAGS-tst-split-dynreloc = -Wl,-T,$(..)sysdeps/x86_64/tst-split-dynreloc.lds