| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
subdir := stdlib |
| 22 |
|
| 23 |
include ../Makeconfig |
| 24 |
|
| 25 |
headers := \ |
| 26 |
alloca.h \ |
| 27 |
bits/errno.h \ |
| 28 |
bits/indirect-return.h \ |
| 29 |
bits/monetary-ldbl.h \ |
| 30 |
bits/stdint-intn.h \ |
| 31 |
bits/stdint-least.h \ |
| 32 |
bits/stdint-uintn.h \ |
| 33 |
bits/stdlib-bsearch.h \ |
| 34 |
bits/stdlib-float.h \ |
| 35 |
bits/stdlib-ldbl.h \ |
| 36 |
bits/stdlib.h \ |
| 37 |
bits/time64.h \ |
| 38 |
bits/timesize.h \ |
| 39 |
bits/types/error_t.h \ |
| 40 |
bits/types/once_flag.h \ |
| 41 |
bits/wordsize.h \ |
| 42 |
errno.h \ |
| 43 |
fmtmsg.h \ |
| 44 |
inttypes.h \ |
| 45 |
monetary.h \ |
| 46 |
stdbit.h \ |
| 47 |
stdint.h \ |
| 48 |
stdlib.h \ |
| 49 |
sys/errno.h \ |
| 50 |
sys/random.h \ |
| 51 |
sys/ucontext.h \ |
| 52 |
ucontext.h \ |
| 53 |
# headers |
| 54 |
|
| 55 |
routines := \ |
| 56 |
a64l \ |
| 57 |
abort \ |
| 58 |
abs \ |
| 59 |
arc4random \ |
| 60 |
arc4random_uniform \ |
| 61 |
at_quick_exit \ |
| 62 |
atof \ |
| 63 |
atoi \ |
| 64 |
atol\ |
| 65 |
atoll \ |
| 66 |
bsearch \ |
| 67 |
canonicalize \ |
| 68 |
cxa_at_quick_exit \ |
| 69 |
cxa_atexit \ |
| 70 |
cxa_finalize \ |
| 71 |
cxa_thread_atexit_impl \ |
| 72 |
div \ |
| 73 |
drand48 \ |
| 74 |
drand48-iter \ |
| 75 |
drand48_r \ |
| 76 |
erand48 \ |
| 77 |
erand48_r \ |
| 78 |
exit \ |
| 79 |
fmtmsg \ |
| 80 |
getcontext \ |
| 81 |
getentropy \ |
| 82 |
getenv \ |
| 83 |
getrandom \ |
| 84 |
getsubopt \ |
| 85 |
jrand48 \ |
| 86 |
jrand48_r \ |
| 87 |
l64a \ |
| 88 |
labs \ |
| 89 |
lcong48 \ |
| 90 |
lcong48_r \ |
| 91 |
ldiv \ |
| 92 |
llabs \ |
| 93 |
lldiv \ |
| 94 |
lrand48 \ |
| 95 |
lrand48_r \ |
| 96 |
makecontext \ |
| 97 |
mblen \ |
| 98 |
mbstowcs \ |
| 99 |
mbtowc \ |
| 100 |
memalignment \ |
| 101 |
mrand48 \ |
| 102 |
mrand48_r \ |
| 103 |
nrand48 \ |
| 104 |
nrand48_r \ |
| 105 |
old_atexit \ |
| 106 |
on_exit atexit \ |
| 107 |
putenv \ |
| 108 |
qsort \ |
| 109 |
quick_exit \ |
| 110 |
rand \ |
| 111 |
rand_r \ |
| 112 |
random \ |
| 113 |
random_r \ |
| 114 |
rpmatch \ |
| 115 |
secure-getenv \ |
| 116 |
seed48 \ |
| 117 |
seed48_r \ |
| 118 |
setcontext \ |
| 119 |
setenv \ |
| 120 |
srand48 \ |
| 121 |
srand48_r \ |
| 122 |
stdc_bit_ceil_uc \ |
| 123 |
stdc_bit_ceil_ui \ |
| 124 |
stdc_bit_ceil_ul \ |
| 125 |
stdc_bit_ceil_ull \ |
| 126 |
stdc_bit_ceil_us \ |
| 127 |
stdc_bit_floor_uc \ |
| 128 |
stdc_bit_floor_ui \ |
| 129 |
stdc_bit_floor_ul \ |
| 130 |
stdc_bit_floor_ull \ |
| 131 |
stdc_bit_floor_us \ |
| 132 |
stdc_bit_width_uc \ |
| 133 |
stdc_bit_width_ui \ |
| 134 |
stdc_bit_width_ul \ |
| 135 |
stdc_bit_width_ull \ |
| 136 |
stdc_bit_width_us \ |
| 137 |
stdc_count_ones_uc \ |
| 138 |
stdc_count_ones_ui \ |
| 139 |
stdc_count_ones_ul \ |
| 140 |
stdc_count_ones_ull \ |
| 141 |
stdc_count_ones_us \ |
| 142 |
stdc_count_zeros_uc \ |
| 143 |
stdc_count_zeros_ui \ |
| 144 |
stdc_count_zeros_ul \ |
| 145 |
stdc_count_zeros_ull \ |
| 146 |
stdc_count_zeros_us \ |
| 147 |
stdc_first_leading_one_uc \ |
| 148 |
stdc_first_leading_one_ui \ |
| 149 |
stdc_first_leading_one_ul \ |
| 150 |
stdc_first_leading_one_ull \ |
| 151 |
stdc_first_leading_one_us \ |
| 152 |
stdc_first_leading_zero_uc \ |
| 153 |
stdc_first_leading_zero_ui \ |
| 154 |
stdc_first_leading_zero_ul \ |
| 155 |
stdc_first_leading_zero_ull \ |
| 156 |
stdc_first_leading_zero_us \ |
| 157 |
stdc_first_trailing_one_uc \ |
| 158 |
stdc_first_trailing_one_ui \ |
| 159 |
stdc_first_trailing_one_ul \ |
| 160 |
stdc_first_trailing_one_ull \ |
| 161 |
stdc_first_trailing_one_us \ |
| 162 |
stdc_first_trailing_zero_uc \ |
| 163 |
stdc_first_trailing_zero_ui \ |
| 164 |
stdc_first_trailing_zero_ul \ |
| 165 |
stdc_first_trailing_zero_ull \ |
| 166 |
stdc_first_trailing_zero_us \ |
| 167 |
stdc_has_single_bit_uc \ |
| 168 |
stdc_has_single_bit_ui \ |
| 169 |
stdc_has_single_bit_ul \ |
| 170 |
stdc_has_single_bit_ull \ |
| 171 |
stdc_has_single_bit_us \ |
| 172 |
stdc_leading_ones_uc \ |
| 173 |
stdc_leading_ones_ui \ |
| 174 |
stdc_leading_ones_ul \ |
| 175 |
stdc_leading_ones_ull \ |
| 176 |
stdc_leading_ones_us \ |
| 177 |
stdc_leading_zeros_uc \ |
| 178 |
stdc_leading_zeros_ui \ |
| 179 |
stdc_leading_zeros_ul \ |
| 180 |
stdc_leading_zeros_ull \ |
| 181 |
stdc_leading_zeros_us \ |
| 182 |
stdc_trailing_ones_uc \ |
| 183 |
stdc_trailing_ones_ui \ |
| 184 |
stdc_trailing_ones_ul \ |
| 185 |
stdc_trailing_ones_ull \ |
| 186 |
stdc_trailing_ones_us \ |
| 187 |
stdc_trailing_zeros_uc \ |
| 188 |
stdc_trailing_zeros_ui \ |
| 189 |
stdc_trailing_zeros_ul \ |
| 190 |
stdc_trailing_zeros_ull \ |
| 191 |
stdc_trailing_zeros_us \ |
| 192 |
strfmon \ |
| 193 |
strfmon_l \ |
| 194 |
strfromd \ |
| 195 |
strfromf \ |
| 196 |
strfroml \ |
| 197 |
strtod \ |
| 198 |
strtod_l \ |
| 199 |
strtod_nan \ |
| 200 |
strtof \ |
| 201 |
strtof_l \ |
| 202 |
strtof_nan \ |
| 203 |
strtol \ |
| 204 |
strtol_l \ |
| 205 |
strtold \ |
| 206 |
strtold_l \ |
| 207 |
strtold_nan \ |
| 208 |
strtoll \ |
| 209 |
strtoll_l \ |
| 210 |
strtoul \ |
| 211 |
strtoul_l \ |
| 212 |
strtoull \ |
| 213 |
strtoull_l \ |
| 214 |
swapcontext \ |
| 215 |
system \ |
| 216 |
uabs \ |
| 217 |
ulabs \ |
| 218 |
ullabs \ |
| 219 |
wcstombs \ |
| 220 |
wctomb \ |
| 221 |
xpg_basename \ |
| 222 |
# routines |
| 223 |
|
| 224 |
|
| 225 |
routines_no_fortify += \ |
| 226 |
mbstowcs \ |
| 227 |
wcstombs \ |
| 228 |
wctomb \ |
| 229 |
# routines_no_fortify |
| 230 |
|
| 231 |
aux = \ |
| 232 |
grouping \ |
| 233 |
groupingwc \ |
| 234 |
tens_in_limb \ |
| 235 |
# aux |
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
static-only-routines = \ |
| 241 |
at_quick_exit \ |
| 242 |
atexit \ |
| 243 |
# static-only-routines |
| 244 |
|
| 245 |
test-srcs := \ |
| 246 |
tst-fmtmsg \ |
| 247 |
#test-srcs |
| 248 |
|
| 249 |
tests := \ |
| 250 |
bug-fmtmsg1 \ |
| 251 |
bug-getcontext \ |
| 252 |
bug-strtod \ |
| 253 |
bug-strtod2 \ |
| 254 |
test-a64l \ |
| 255 |
test-at_quick_exit-race \ |
| 256 |
test-atexit-race \ |
| 257 |
test-atexit-recursive \ |
| 258 |
test-bz22786 \ |
| 259 |
test-canon \ |
| 260 |
test-canon2 \ |
| 261 |
test-cxa_atexit-race \ |
| 262 |
test-cxa_atexit-race2 \ |
| 263 |
test-dlclose-exit-race \ |
| 264 |
test-on_exit-race \ |
| 265 |
testdiv \ |
| 266 |
testmb \ |
| 267 |
testmb2 \ |
| 268 |
testrand \ |
| 269 |
testsort \ |
| 270 |
tst-abs \ |
| 271 |
tst-arc4random-fork \ |
| 272 |
tst-arc4random-stats \ |
| 273 |
tst-arc4random-thread \ |
| 274 |
tst-at_quick_exit \ |
| 275 |
tst-atexit \ |
| 276 |
tst-atof1 \ |
| 277 |
tst-atof2 \ |
| 278 |
tst-bsearch \ |
| 279 |
tst-bz20544 \ |
| 280 |
tst-canon-bz26341 \ |
| 281 |
tst-concurrent-exit \ |
| 282 |
tst-concurrent-quick_exit \ |
| 283 |
tst-const \ |
| 284 |
tst-cxa_atexit \ |
| 285 |
tst-environ \ |
| 286 |
tst-environ-change-1 \ |
| 287 |
tst-environ-change-2 \ |
| 288 |
tst-environ-change-3 \ |
| 289 |
tst-environ-change-4 \ |
| 290 |
tst-getenv-signal \ |
| 291 |
tst-getenv-static \ |
| 292 |
tst-getenv-thread \ |
| 293 |
tst-getenv-unsetenv \ |
| 294 |
tst-getrandom \ |
| 295 |
tst-getrandom-errno \ |
| 296 |
tst-getrandom2 \ |
| 297 |
tst-labs \ |
| 298 |
tst-limits \ |
| 299 |
tst-llabs \ |
| 300 |
tst-makecontext \ |
| 301 |
tst-makecontext-align \ |
| 302 |
tst-makecontext2 \ |
| 303 |
tst-makecontext3 \ |
| 304 |
tst-memalignment \ |
| 305 |
tst-on_exit \ |
| 306 |
tst-qsort \ |
| 307 |
tst-qsort2 \ |
| 308 |
tst-qsort3 \ |
| 309 |
tst-qsort6 \ |
| 310 |
tst-qsort7 \ |
| 311 |
tst-qsortx7 \ |
| 312 |
tst-quick_exit \ |
| 313 |
tst-rand-sequence \ |
| 314 |
tst-rand48 \ |
| 315 |
tst-rand48-2 \ |
| 316 |
tst-random \ |
| 317 |
tst-random-bz30584 \ |
| 318 |
tst-random2 \ |
| 319 |
tst-realpath \ |
| 320 |
tst-realpath-toolong \ |
| 321 |
tst-secure-getenv \ |
| 322 |
tst-setcontext \ |
| 323 |
tst-setcontext2 \ |
| 324 |
tst-setcontext3 \ |
| 325 |
tst-setcontext4 \ |
| 326 |
tst-setcontext5 \ |
| 327 |
tst-setcontext6 \ |
| 328 |
tst-setcontext7 \ |
| 329 |
tst-setcontext8 \ |
| 330 |
tst-setcontext9 \ |
| 331 |
tst-setcontext10 \ |
| 332 |
tst-setcontext11 \ |
| 333 |
tst-setenv-environ \ |
| 334 |
tst-stdbit-Wconversion \ |
| 335 |
tst-stdbit-builtins \ |
| 336 |
tst-stdc_bit_ceil \ |
| 337 |
tst-stdc_bit_floor \ |
| 338 |
tst-stdc_bit_width \ |
| 339 |
tst-stdc_count_ones \ |
| 340 |
tst-stdc_count_zeros \ |
| 341 |
tst-stdc_first_leading_one \ |
| 342 |
tst-stdc_first_leading_zero \ |
| 343 |
tst-stdc_first_trailing_one \ |
| 344 |
tst-stdc_first_trailing_zero \ |
| 345 |
tst-stdc_has_single_bit \ |
| 346 |
tst-stdc_leading_ones \ |
| 347 |
tst-stdc_leading_zeros \ |
| 348 |
tst-stdc_trailing_ones \ |
| 349 |
tst-stdc_trailing_zeros \ |
| 350 |
tst-strfmon_l \ |
| 351 |
tst-strfrom \ |
| 352 |
tst-strfrom-locale \ |
| 353 |
tst-strtod \ |
| 354 |
tst-strtod-nan-locale \ |
| 355 |
tst-strtod-nan-sign \ |
| 356 |
tst-strtod-overflow \ |
| 357 |
tst-strtod-round \ |
| 358 |
tst-strtod-underflow \ |
| 359 |
tst-strtod2 \ |
| 360 |
tst-strtod5 \ |
| 361 |
tst-strtod6 \ |
| 362 |
tst-strtol \ |
| 363 |
tst-strtol-binary-c11 \ |
| 364 |
tst-strtol-binary-c23 \ |
| 365 |
tst-strtol-binary-gnu11 \ |
| 366 |
tst-strtol-binary-gnu23 \ |
| 367 |
tst-strtol-locale \ |
| 368 |
tst-strtoll \ |
| 369 |
tst-swapcontext1 \ |
| 370 |
tst-swapcontext2 \ |
| 371 |
tst-thread-quick_exit \ |
| 372 |
tst-tininess \ |
| 373 |
tst-uabs \ |
| 374 |
tst-ulabs \ |
| 375 |
tst-ullabs \ |
| 376 |
tst-umaxabs \ |
| 377 |
tst-unsetenv1 \ |
| 378 |
tst-width \ |
| 379 |
tst-width-stdint \ |
| 380 |
tst-xpg-basename \ |
| 381 |
# tests |
| 382 |
|
| 383 |
ifeq ($(have-GLIBC_2.42)$(build-shared),yesyes) |
| 384 |
tests += \ |
| 385 |
tst-uimaxabs \ |
| 386 |
# tests |
| 387 |
endif |
| 388 |
|
| 389 |
tests-internal := \ |
| 390 |
tst-qsort4 \ |
| 391 |
tst-strtod1i \ |
| 392 |
tst-strtod3 \ |
| 393 |
tst-strtod4 \ |
| 394 |
tst-strtod5i \ |
| 395 |
tst-tls-atexit \ |
| 396 |
tst-tls-atexit-nodelete \ |
| 397 |
# tests-internal |
| 398 |
|
| 399 |
tests-static := \ |
| 400 |
tst-getenv-static \ |
| 401 |
tst-secure-getenv \ |
| 402 |
# tests-static |
| 403 |
|
| 404 |
tests-container := \ |
| 405 |
tst-system \ |
| 406 |
#tests-container |
| 407 |
|
| 408 |
ifeq ($(build-hardcoded-path-in-tests),yes) |
| 409 |
tests += \ |
| 410 |
tst-empty-env \ |
| 411 |
# tests |
| 412 |
endif |
| 413 |
|
| 414 |
LDLIBS-test-atexit-race = $(shared-thread-library) |
| 415 |
LDLIBS-test-at_quick_exit-race = $(shared-thread-library) |
| 416 |
LDLIBS-test-cxa_atexit-race = $(shared-thread-library) |
| 417 |
LDLIBS-test-cxa_atexit-race2 = $(shared-thread-library) |
| 418 |
LDLIBS-test-on_exit-race = $(shared-thread-library) |
| 419 |
LDLIBS-tst-canon-bz26341 = $(shared-thread-library) |
| 420 |
LDLIBS-tst-arc4random-fork = $(shared-thread-library) |
| 421 |
LDLIBS-tst-arc4random-thread = $(shared-thread-library) |
| 422 |
LDLIBS-tst-system = $(shared-thread-library) |
| 423 |
|
| 424 |
LDLIBS-test-dlclose-exit-race = $(shared-thread-library) |
| 425 |
LDFLAGS-test-dlclose-exit-race = $(LDFLAGS-rdynamic) |
| 426 |
LDLIBS-test-dlclose-exit-race-helper.so = $(libsupport) $(shared-thread-library) |
| 427 |
|
| 428 |
CFLAGS-tst-abs.c += -fno-builtin |
| 429 |
CFLAGS-tst-labs.c += -fno-builtin |
| 430 |
CFLAGS-tst-llabs.c += -fno-builtin |
| 431 |
|
| 432 |
CFLAGS-tst-uabs.c += -fno-builtin |
| 433 |
CFLAGS-tst-uimaxabs.c += -fno-builtin |
| 434 |
CFLAGS-tst-ulabs.c += -fno-builtin |
| 435 |
CFLAGS-tst-ullabs.c += -fno-builtin |
| 436 |
CFLAGS-tst-umaxabs.c += -fno-builtin |
| 437 |
|
| 438 |
CFLAGS-tst-stdbit-Wconversion.c += -Wconversion -Werror |
| 439 |
CFLAGS-tst-stdc_trailing_zeros.c += -fno-builtin |
| 440 |
CFLAGS-tst-stdc_trailing_ones.c += -fno-builtin |
| 441 |
CFLAGS-tst-stdc_leading_zeros.c += -fno-builtin |
| 442 |
CFLAGS-tst-stdc_leading_ones.c += -fno-builtin |
| 443 |
CFLAGS-tst-stdc_has_single_bit.c += -fno-builtin |
| 444 |
CFLAGS-tst-stdc_first_trailing_zero.c += -fno-builtin |
| 445 |
CFLAGS-tst-stdc_first_trailing_one.c += -fno-builtin |
| 446 |
CFLAGS-tst-stdc_first_leading_zero.c += -fno-builtin |
| 447 |
CFLAGS-tst-stdc_first_leading_one.c += -fno-builtin |
| 448 |
CFLAGS-tst-stdc_count_zeros.c += -fno-builtin |
| 449 |
CFLAGS-tst-stdc_count_ones.c += -fno-builtin |
| 450 |
CFLAGS-tst-stdc_bit_width.c += -fno-builtin |
| 451 |
CFLAGS-tst-stdc_bit_floor.c += -fno-builtin |
| 452 |
CFLAGS-tst-stdc_bit_ceil.c += -fno-builtin |
| 453 |
|
| 454 |
CFLAGS-tst-memalignment.c += -fno-builtin |
| 455 |
|
| 456 |
ifeq ($(have-cxx-thread_local),yes) |
| 457 |
CFLAGS-tst-quick_exit.o = -std=c++11 |
| 458 |
LDLIBS-tst-quick_exit = -lstdc++ |
| 459 |
CFLAGS-tst-thread-quick_exit.o = -std=c++11 |
| 460 |
LDLIBS-tst-thread-quick_exit = -lstdc++ |
| 461 |
$(objpfx)tst-thread-quick_exit: $(shared-thread-library) |
| 462 |
else |
| 463 |
tests-unsupported += \ |
| 464 |
tst-quick_exit \ |
| 465 |
tst-thread-quick_exit \ |
| 466 |
# tests-unsupported |
| 467 |
endif |
| 468 |
|
| 469 |
modules-names = \ |
| 470 |
test-dlclose-exit-race-helper \ |
| 471 |
tst-tls-atexit-lib \ |
| 472 |
# modules-names |
| 473 |
extra-test-objs += $(addsuffix .os, $(modules-names)) |
| 474 |
|
| 475 |
ifeq ($(build-shared),yes) |
| 476 |
tests += \ |
| 477 |
tst-putenv \ |
| 478 |
# tests |
| 479 |
endif |
| 480 |
|
| 481 |
|
| 482 |
mpn-routines := \ |
| 483 |
add_n \ |
| 484 |
addmul_1 \ |
| 485 |
cmp \ |
| 486 |
divmod_1 \ |
| 487 |
divrem \ |
| 488 |
inlines \ |
| 489 |
lshift \ |
| 490 |
mod_1 \ |
| 491 |
mul \ |
| 492 |
mul_1 \ |
| 493 |
mul_n \ |
| 494 |
rshift \ |
| 495 |
sub_n \ |
| 496 |
submul_1 \ |
| 497 |
# mpn-routines |
| 498 |
mpn-headers = \ |
| 499 |
asm-syntax.h \ |
| 500 |
gmp-impl.h \ |
| 501 |
gmp-mparam.h \ |
| 502 |
gmp.h \ |
| 503 |
# mpn-headers |
| 504 |
|
| 505 |
routines := \ |
| 506 |
$(strip $(routines) $(mpn-routines)) \ |
| 507 |
dbl2mpn \ |
| 508 |
ldbl2mpn \ |
| 509 |
mpn2dbl \ |
| 510 |
mpn2flt \ |
| 511 |
mpn2ldbl \ |
| 512 |
# routines |
| 513 |
aux += \ |
| 514 |
fpioconst \ |
| 515 |
# aux |
| 516 |
|
| 517 |
tests-extras += \ |
| 518 |
tst-putenvmod \ |
| 519 |
# tests-extras |
| 520 |
|
| 521 |
extra-test-objs += \ |
| 522 |
tst-putenvmod.os \ |
| 523 |
# extra-test-objs |
| 524 |
|
| 525 |
generated += \ |
| 526 |
isomac \ |
| 527 |
isomac.out \ |
| 528 |
tst-putenvmod.so \ |
| 529 |
# generated |
| 530 |
|
| 531 |
CFLAGS-bsearch.c += $(uses-callbacks) |
| 532 |
CFLAGS-qsort.c += $(uses-callbacks) |
| 533 |
CFLAGS-system.c += -fexceptions |
| 534 |
CFLAGS-system.os = -fomit-frame-pointer |
| 535 |
CFLAGS-fmtmsg.c += -fexceptions |
| 536 |
|
| 537 |
CFLAGS-strfmon.c += $(libio-mtsafe) |
| 538 |
CFLAGS-strfmon_l.c += $(libio-mtsafe) |
| 539 |
|
| 540 |
|
| 541 |
|
| 542 |
CFLAGS-strfromd.c += $(libio-mtsafe) |
| 543 |
CFLAGS-strfromf.c += $(libio-mtsafe) |
| 544 |
CFLAGS-strfroml.c += $(libio-mtsafe) |
| 545 |
|
| 546 |
CFLAGS-tst-bsearch.c += $(stack-align-test-flags) |
| 547 |
CFLAGS-tst-qsort.c += $(stack-align-test-flags) |
| 548 |
CFLAGS-tst-makecontext.c += -funwind-tables |
| 549 |
CFLAGS-tst-makecontext2.c += $(stack-align-test-flags) |
| 550 |
|
| 551 |
CFLAGS-testmb.c += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Werror |
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
CFLAGS-tst-strtol-binary-c11.c += -std=c11 |
| 558 |
CFLAGS-tst-strtol-binary-c23.c += -std=c11 |
| 559 |
CFLAGS-tst-strtol-binary-gnu11.c += -std=gnu11 |
| 560 |
CFLAGS-tst-strtol-binary-gnu23.c += -std=gnu11 |
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
tests-special += $(objpfx)isomac.out |
| 565 |
|
| 566 |
ifeq ($(run-built-tests),yes) |
| 567 |
tests-special += $(objpfx)tst-fmtmsg.out |
| 568 |
ifeq ($(build-shared),yes) |
| 569 |
ifneq ($(PERL),no) |
| 570 |
generated += \ |
| 571 |
tst-qsort7.mtrace \ |
| 572 |
tst-qsortx7.mtrace \ |
| 573 |
# generated |
| 574 |
tests-special += \ |
| 575 |
$(objpfx)tst-qsort7-mem.out \ |
| 576 |
$(objpfx)tst-qsortx7-mem.out \ |
| 577 |
# tests-special |
| 578 |
endif |
| 579 |
endif |
| 580 |
endif |
| 581 |
|
| 582 |
include ../Rules |
| 583 |
|
| 584 |
ifeq ($(run-built-tests),yes) |
| 585 |
LOCALES := \ |
| 586 |
cs_CZ.UTF-8 \ |
| 587 |
de_DE.UTF-8 \ |
| 588 |
el_GR.UTF-8 \ |
| 589 |
en_US.ISO-8859-1 \ |
| 590 |
hi_IN.UTF-8 \ |
| 591 |
hr_HR.UTF-8 \ |
| 592 |
tg_TJ.UTF-8 \ |
| 593 |
tr_TR.ISO-8859-9 \ |
| 594 |
tr_TR.UTF-8 \ |
| 595 |
# LOCALES |
| 596 |
include ../gen-locales.mk |
| 597 |
|
| 598 |
$(objpfx)bug-strtod2.out: $(gen-locales) |
| 599 |
$(objpfx)testmb2.out: $(gen-locales) |
| 600 |
$(objpfx)tst-strtod.out: $(gen-locales) |
| 601 |
$(objpfx)tst-strtod1i.out: $(gen-locales) |
| 602 |
$(objpfx)tst-strtod3.out: $(gen-locales) |
| 603 |
$(objpfx)tst-strtod4.out: $(gen-locales) |
| 604 |
$(objpfx)tst-strtod5.out: $(gen-locales) |
| 605 |
$(objpfx)tst-strtod5i.out: $(gen-locales) |
| 606 |
$(objpfx)tst-strtol-locale.out: $(gen-locales) |
| 607 |
$(objpfx)tst-strtod-nan-locale.out: $(gen-locales) |
| 608 |
$(objpfx)tst-strfmon_l.out: $(gen-locales) |
| 609 |
$(objpfx)tst-strfrom.out: $(gen-locales) |
| 610 |
$(objpfx)tst-strfrom-locale.out: $(gen-locales) |
| 611 |
$(objpfx)test-dlclose-exit-race.out: $(objpfx)test-dlclose-exit-race-helper.so |
| 612 |
endif |
| 613 |
|
| 614 |
|
| 615 |
test-canon-ARGS = --test-dir=${common-objpfx}stdlib |
| 616 |
|
| 617 |
bug-fmtmsg1-ENV = SEV_LEVEL=foo,11,newsev |
| 618 |
|
| 619 |
$(objpfx)isomac.out: $(objpfx)isomac |
| 620 |
$(dir $<)$(notdir $<) '$(CC)' \ |
| 621 |
'-I../include $(+sysdep-includes) $(sysincludes) -I..' > $@; \ |
| 622 |
$(evaluate-test) |
| 623 |
|
| 624 |
isomac-CFLAGS = -O |
| 625 |
$(objpfx)isomac: isomac.c |
| 626 |
$(native-compile) |
| 627 |
|
| 628 |
$(objpfx)tst-fmtmsg.out: tst-fmtmsg.sh $(objpfx)tst-fmtmsg |
| 629 |
$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \ |
| 630 |
'$(run-program-env)' '$(test-program-prefix-after-env)' \ |
| 631 |
$(common-objpfx)stdlib/; \ |
| 632 |
$(evaluate-test) |
| 633 |
|
| 634 |
$(objpfx)tst-putenv: $(objpfx)tst-putenvmod.so |
| 635 |
LDFLAGS-tst-putenv = -Wl,--no-as-needed |
| 636 |
|
| 637 |
$(objpfx)tst-putenvmod.so: $(objpfx)tst-putenvmod.os $(link-libc-deps) |
| 638 |
$(build-module) |
| 639 |
libof-tst-putenvmod = extramodules |
| 640 |
|
| 641 |
$(objpfx)bug-getcontext: $(libm) |
| 642 |
$(objpfx)bug-strtod2: $(libm) |
| 643 |
$(objpfx)tst-strtod-round: $(libm) |
| 644 |
$(objpfx)tst-tininess: $(libm) |
| 645 |
$(objpfx)tst-strtod-underflow: $(libm) |
| 646 |
$(objpfx)tst-strtod5: $(libm) |
| 647 |
$(objpfx)tst-strtod5i: $(libm) |
| 648 |
$(objpfx)tst-strtod6: $(libm) |
| 649 |
$(objpfx)tst-strtod-nan-locale: $(libm) |
| 650 |
$(objpfx)tst-strtod-nan-sign: $(libm) |
| 651 |
|
| 652 |
tst-tls-atexit-lib.so-no-z-defs = yes |
| 653 |
test-dlclose-exit-race-helper.so-no-z-defs = yes |
| 654 |
|
| 655 |
$(objpfx)tst-tls-atexit: $(shared-thread-library) |
| 656 |
$(objpfx)tst-tls-atexit.out: $(objpfx)tst-tls-atexit-lib.so |
| 657 |
|
| 658 |
$(objpfx)tst-tls-atexit-nodelete: $(shared-thread-library) |
| 659 |
$(objpfx)tst-tls-atexit-nodelete.out: $(objpfx)tst-tls-atexit-lib.so |
| 660 |
|
| 661 |
$(objpfx)tst-setcontext3.out: tst-setcontext3.sh $(objpfx)tst-setcontext3 |
| 662 |
$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \ |
| 663 |
'$(run-program-env)' '$(test-program-prefix-after-env)' \ |
| 664 |
$(common-objpfx)stdlib/; \ |
| 665 |
$(evaluate-test) |
| 666 |
|
| 667 |
$(objpfx)tst-concurrent-exit: $(shared-thread-library) |
| 668 |
$(objpfx)tst-concurrent-quick_exit: $(shared-thread-library) |
| 669 |
$(objpfx)tst-getrandom2: $(shared-thread-library) |
| 670 |
$(objpfx)tst-getenv-signal: $(shared-thread-library) |
| 671 |
$(objpfx)tst-getenv-thread: $(shared-thread-library) |
| 672 |
$(objpfx)tst-getenv-unsetenv: $(shared-thread-library) |
| 673 |
|
| 674 |
CFLAGS-tst-qsort7.c += -fno-exceptions -fno-asynchronous-unwind-tables |
| 675 |
LDLIBS-tst-qsort7 = $(shared-thread-library) |
| 676 |
tst-qsort7-ENV = MALLOC_TRACE=$(objpfx)tst-qsort7.mtrace \ |
| 677 |
LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so |
| 678 |
$(objpfx)tst-qsort7-mem.out: $(objpfx)tst-qsort7.out |
| 679 |
$(common-objpfx)malloc/mtrace $(objpfx)tst-qsort7.mtrace > $@; \ |
| 680 |
$(evaluate-test) |
| 681 |
|
| 682 |
CFLAGS-tst-qsortx7.c += -fexceptions |
| 683 |
LDLIBS-tst-qsortx7 = $(shared-thread-library) |
| 684 |
tst-qsortx7-ENV = MALLOC_TRACE=$(objpfx)tst-qsortx7.mtrace \ |
| 685 |
LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so |
| 686 |
$(objpfx)tst-qsortx7-mem.out: $(objpfx)tst-qsortx7.out |
| 687 |
$(common-objpfx)malloc/mtrace $(objpfx)tst-qsortx7.mtrace > $@; \ |
| 688 |
$(evaluate-test) |