mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
8540f6d2a7
One wart in the original support for test wrappers for cross testing, as noted in <https://sourceware.org/ml/libc-alpha/2012-10/msg00722.html>, is the requirement for test wrappers to pass a poorly-defined set of environment variables from the build system to the system running the glibc under test. Although some variables are passed explicitly via $(test-wrapper-env), including LD_* variables that simply can't be passed implicitly because of the side effects they'd have on the build system's dynamic linker, others are passed implicitly, including variables such as GCONV_PATH and LOCPATH that could potentially affect the build system's libc (so effectively relying on any such effects not breaking the wrappers). In addition, the code in cross-test-ssh.sh for preserving environment variables is fragile (it depends on how bash formats a list of exported variables, and could well break for multi-line variable definitions where the contents contain things looking like other variable definitions). This patch moves to explicitly passing environment variables via $(test-wrapper-env). Makefile variables that previously used $(test-wrapper) are split up into -before-env and -after-env parts that can be passed separately to the various .sh files used in testing, so those files can then insert environment settings between the two parts. The common default environment settings in make-test-out are made into a separate makefile variable that can also be passed to scripts, rather than many scripts duplicating those settings (for testing an installed glibc, it is desirable to have the GCONV_PATH setting on just one place, so just that one place needs to support it pointing to an installed sysroot instead of the build tree). The default settings are included in the variables such as $(test-program-prefix), so that if tests do not need any non-default settings they can continue to use single variables rather than the split-up variables. Although this patch cleans up LC_ALL=C settings (that being part of the common defaults), various LANG=C and LANGUAGE=C settings remain. Those are generally unnecessary and I propose a subsequent cleanup to remove them. LC_ALL takes precedence over LANG, and while LANGUAGE takes precedence over LC_ALL, it only does so for settings other than LC_ALL=C. So LC_ALL=C on its own is sufficient to ensure the C locale, and anything that gets LC_ALL=C does not need the other settings. While preparing this patch I noticed some tests with .sh files that appeared to do nothing beyond what the generic makefile support for tests can do (localedata/tst-wctype.sh - the makefiles support -ENV variables and .input files - and localedata/tst-mbswcs.sh - just runs five tests that could be run individually from the makefile). So I propose another subsequent cleanup to move those to using the generic support instead of special .sh files. Tested x86_64 (native) and powerpc32 (cross). * Makeconfig (run-program-env): New variable. (run-program-prefix-before-env): Likewise. (run-program-prefix-after-env): Likewise. (run-program-prefix): Define in terms of new variables. (built-program-cmd-before-env): New variable. (built-program-cmd-after-env): Likewise. (built-program-cmd): Define in terms of new variables. (test-program-prefix-before-env): New variable. (test-program-prefix-after-env): Likewise. (test-program-prefix): Define in terms of new variables. (test-program-cmd-before-env): New variable. (test-program-cmd-after-env): Likewise. (test-program-cmd): Define in terms of new variables. * Rules (make-test-out): Use $(run-program-env). * scripts/cross-test-ssh.sh (env_blacklist): Remove variable. (help): Do not mention environment variables. Mention --timeoutfactor option. (timeoutfactor): New variable. (blacklist_exports): Remove function. (exports): Remove variable. (command): Do not include ${exports}. * manual/install.texi (Configuring and compiling): Do not mention test wrappers preserving environment variables. Mention that last assignment to a variable must take precedence. * INSTALL: Regenerated. * benchtests/Makefile (run-bench): Use $(run-program-env). * catgets/Makefile ($(objpfx)test1.cat): Use $(built-program-cmd-before-env), $(run-program-env) and $(built-program-cmd-after-env). ($(objpfx)test2.cat): Do not specify environment variables explicitly. ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env), $(run-program-env) and $(built-program-cmd-after-env). ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env), $(run-program-env) and $(test-program-cmd-after-env). ($(objpfx)sample.SJIS.cat): Do not specify environment variables explicitly. * catgets/test-gencat.sh: Use test_program_cmd_before_env, run_program_env and test_program_cmd_after_env arguments. * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env). * elf/tst-pathopt.sh: Use run_program_env argument. * iconvdata/Makefile ($(objpfx)iconv-test.out): Use $(test-wrapper-env) and $(run-program-env). * iconvdata/run-iconv-test.sh: Use test_wrapper_env and run_program_env arguments. * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly. * intl/Makefile ($(objpfx)tst-gettext.out): Use $(test-program-prefix-before-env), $(run-program-env) and $(test-program-prefix-after-env). ($(objpfx)tst-gettext2.out): Likewise. * intl/tst-gettext.sh: Use test_program_prefix_before_env, run_program_env and test_program_prefix_after_env arguments. * intl/tst-gettext2.sh: Likewise. * intl/tst-gettext4.sh: Do not set environment variables explicitly. * intl/tst-gettext6.sh: Likewise. * intl/tst-translit.sh: Likewise. * malloc/Makefile ($(objpfx)tst-mtrace.out): Use $(test-program-prefix-before-env), $(run-program-env) and $(test-program-prefix-after-env). * malloc/tst-mtrace.sh: Use test_program_prefix_before_env, run_program_env and test_program_prefix_after_env arguments. * math/Makefile (run-regen-ulps): Use $(run-program-env). * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env). * nptl/tst-tls6.sh: Use run_program_env argument. Set LANG=C explicitly with each use of ${test_wrapper_env}. * posix/Makefile ($(objpfx)wordexp-tst.out): Use $(test-program-prefix-before-env), $(run-program-env) and $(test-program-prefix-after-env). * posix/tst-getconf.sh: Do not set environment variables explicitly. * posix/wordexp-tst.sh: Use test_program_prefix_before_env, run_program_env and test_program_prefix_after_env arguments. * stdio-common/tst-printf.sh: Do not set environment variables explicitly. * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use $(test-program-prefix-before-env), $(run-program-env) and $(test-program-prefix-after-env). * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env, run_program_env and test_program_prefix_after_env arguments. Split $test calls into $test_pre and $test. * timezone/Makefile (build-testdata): Use $(built-program-cmd-before-env), $(run-program-env) and $(built-program-cmd-after-env). localedata/ChangeLog: * Makefile ($(addprefix $(objpfx),$(CTYPE_FILES))): Use $(built-program-cmd-before-env), $(run-program-env) and $(built-program-cmd-after-env). ($(objpfx)sort-test.out): Use $(test-program-prefix-before-env), $(run-program-env) and $(test-program-prefix-after-env). ($(objpfx)tst-fmon.out): Use $(run-program-prefix-before-env), $(run-program-env) and $(run-program-prefix-after-env). ($(objpfx)tst-locale.out): Use $(built-program-cmd-before-env), $(run-program-env) and $(built-program-cmd-after-env). ($(objpfx)tst-trans.out): Use $(run-program-prefix-before-env), $(run-program-env), $(run-program-prefix-after-env), $(test-program-prefix-before-env) and $(test-program-prefix-after-env). ($(objpfx)tst-ctype.out): Use $(test-program-cmd-before-env), $(run-program-env) and $(test-program-cmd-after-env). ($(objpfx)tst-wctype.out): Likewise. ($(objpfx)tst-langinfo.out): Likewise. ($(objpfx)tst-langinfo-static.out): Likewise. * gen-locale.sh: Use localedef_before_env, run_program_env and localedef_after_env arguments. * sort-test.sh: Use test_program_prefix_before_env, run_program_env and test_program_prefix_after_env arguments. * tst-ctype.sh: Use tst_ctype_before_env, run_program_env and tst_ctype_after_env arguments. * tst-fmon.sh: Use run_program_prefix_before_env, run_program_env and run_program_prefix_after_env arguments. * tst-langinfo.sh: Use tst_langinfo_before_env, run_program_env and tst_langinfo_after_env arguments. * tst-locale.sh: Use localedef_before_env, run_program_env and localedef_after_env arguments. * tst-mbswcs.sh: Do not set environment variables explicitly. * tst-numeric.sh: Likewise. * tst-rpmatch.sh: Likewise. * tst-trans.sh: Use run_program_prefix_before_env, run_program_env, run_program_prefix_after_env, test_program_prefix_before_env and test_program_prefix_after_env arguments. * tst-wctype.sh: Use tst_wctype_before_env, run_program_env and tst_wctype_after_env arguments.
321 lines
12 KiB
Makefile
321 lines
12 KiB
Makefile
# Copyright (C) 1991-2014 Free Software Foundation, Inc.
|
|
# This file is part of the GNU C Library.
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with the GNU C Library; if not, see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
# Sub-makefile for POSIX portion of the library.
|
|
#
|
|
subdir := posix
|
|
|
|
include ../Makeconfig
|
|
|
|
headers := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h \
|
|
glob.h regex.h wordexp.h fnmatch.h getopt.h \
|
|
bits/types.h bits/typesizes.h bits/pthreadtypes.h \
|
|
bits/posix1_lim.h bits/posix2_lim.h bits/posix_opt.h \
|
|
bits/local_lim.h tar.h bits/utsname.h bits/confname.h \
|
|
bits/waitflags.h bits/waitstatus.h sys/unistd.h sched.h \
|
|
bits/sched.h re_comp.h wait.h bits/environments.h cpio.h \
|
|
sys/sysmacros.h spawn.h bits/unistd.h
|
|
|
|
routines := \
|
|
uname \
|
|
times \
|
|
wait waitpid wait3 wait4 waitid \
|
|
alarm sleep pause nanosleep \
|
|
fork vfork _exit \
|
|
execve fexecve execv execle execl execvp execlp execvpe \
|
|
getpid getppid \
|
|
getuid geteuid getgid getegid getgroups setuid setgid group_member \
|
|
getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid \
|
|
getresuid getresgid setresuid setresgid \
|
|
pathconf sysconf fpathconf \
|
|
glob glob64 fnmatch regex \
|
|
confstr \
|
|
getopt getopt1 getopt_init \
|
|
sched_setp sched_getp sched_sets sched_gets sched_yield sched_primax \
|
|
sched_primin sched_rr_gi sched_getaffinity sched_setaffinity \
|
|
getaddrinfo gai_strerror wordexp \
|
|
pread pwrite pread64 pwrite64 \
|
|
spawn_faction_init spawn_faction_destroy spawn_faction_addclose \
|
|
spawn_faction_addopen spawn_faction_adddup2 \
|
|
spawnattr_init spawnattr_destroy \
|
|
spawnattr_getdefault spawnattr_setdefault \
|
|
spawnattr_getflags spawnattr_setflags \
|
|
spawnattr_getpgroup spawnattr_setpgroup spawn spawnp spawni \
|
|
spawnattr_getsigmask spawnattr_getschedpolicy spawnattr_getschedparam \
|
|
spawnattr_setsigmask spawnattr_setschedpolicy spawnattr_setschedparam \
|
|
posix_madvise \
|
|
get_child_max sched_cpucount sched_cpualloc sched_cpufree
|
|
|
|
aux := init-posix environ
|
|
tests := tstgetopt testfnm runtests runptests \
|
|
tst-preadwrite tst-preadwrite64 test-vfork regexbug1 \
|
|
tst-getlogin tst-mmap tst-getaddrinfo tst-truncate \
|
|
tst-truncate64 tst-fork tst-fnmatch tst-regexloc tst-dir \
|
|
tst-chmod bug-regex1 bug-regex2 bug-regex3 bug-regex4 \
|
|
tst-gnuglob tst-regex bug-regex5 bug-regex6 bug-regex7 \
|
|
bug-regex8 bug-regex9 bug-regex10 bug-regex11 bug-regex12 \
|
|
bug-regex13 bug-regex14 bug-regex15 bug-regex16 \
|
|
bug-regex17 bug-regex18 bug-regex19 bug-regex20 \
|
|
bug-regex21 bug-regex22 bug-regex23 bug-regex24 \
|
|
bug-regex25 bug-regex26 bug-regex27 bug-regex28 \
|
|
bug-regex29 bug-regex30 bug-regex31 bug-regex32 \
|
|
bug-regex33 tst-nice tst-nanosleep tst-regex2 \
|
|
transbug tst-rxspencer tst-pcre tst-boost \
|
|
bug-ga1 tst-vfork1 tst-vfork2 tst-vfork3 tst-waitid \
|
|
tst-getaddrinfo2 bug-glob1 bug-glob2 bug-glob3 tst-sysconf \
|
|
tst-execvp1 tst-execvp2 tst-execlp1 tst-execlp2 \
|
|
tst-execv1 tst-execv2 tst-execl1 tst-execl2 \
|
|
tst-execve1 tst-execve2 tst-execle1 tst-execle2 \
|
|
tst-execvp3 tst-execvp4 tst-rfc3484 tst-rfc3484-2 \
|
|
tst-rfc3484-3 \
|
|
tst-getaddrinfo3 tst-fnmatch2 tst-cpucount tst-cpuset \
|
|
bug-getopt1 bug-getopt2 bug-getopt3 bug-getopt4 \
|
|
bug-getopt5 tst-getopt_long1 bug-regex34 bug-regex35 \
|
|
tst-pathconf tst-getaddrinfo4 tst-rxspencer-no-utf8
|
|
xtests := bug-ga2
|
|
ifeq (yes,$(build-shared))
|
|
test-srcs := globtest
|
|
tests += wordexp-test tst-exec tst-spawn
|
|
endif
|
|
tests-static = tst-exec-static tst-spawn-static
|
|
tests += $(tests-static)
|
|
others := getconf
|
|
install-bin := getconf
|
|
install-others-programs := $(inst_libexecdir)/getconf
|
|
|
|
before-compile += testcases.h ptestcases.h
|
|
|
|
# So they get cleaned up.
|
|
generated += $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \
|
|
annexc annexc.out wordexp-tst.out bug-regex2-mem.out \
|
|
bug-regex2.mtrace bug-regex14-mem.out bug-regex14.mtrace \
|
|
bug-regex21-mem.out bug-regex21.mtrace \
|
|
bug-regex31-mem.out bug-regex31.mtrace \
|
|
tst-rxspencer-no-utf8-mem.out tst-rxspencer-no-utf8.mtrace \
|
|
tst-getconf.out \
|
|
tst-pcre-mem.out tst-pcre.mtrace tst-boost-mem.out \
|
|
tst-boost.mtrace bug-ga2.mtrace bug-ga2-mem.out \
|
|
bug-glob2.mtrace bug-glob2-mem.out tst-vfork3-mem.out \
|
|
tst-vfork3.mtrace getconf.speclist tst-fnmatch-mem.out \
|
|
tst-fnmatch.mtrace
|
|
|
|
ifeq ($(run-built-tests),yes)
|
|
ifeq (yes,$(build-shared))
|
|
tests-special += $(objpfx)globtest.out $(objpfx)wordexp-tst.out
|
|
endif
|
|
endif
|
|
|
|
# Run a test on the header files we use.
|
|
# XXX Please note that for now we ignore the result of this test.
|
|
tests-special += $(objpfx)annexc.out
|
|
ifeq ($(run-built-tests),yes)
|
|
tests-special += $(objpfx)bug-regex2-mem.out $(objpfx)bug-regex14-mem.out \
|
|
$(objpfx)bug-regex21-mem.out $(objpfx)bug-regex31-mem.out \
|
|
$(objpfx)tst-rxspencer-no-utf8-mem.out $(objpfx)tst-pcre-mem.out \
|
|
$(objpfx)tst-boost-mem.out $(objpfx)tst-getconf.out \
|
|
$(objpfx)bug-glob2-mem.out $(objpfx)tst-vfork3-mem.out \
|
|
$(objpfx)tst-fnmatch-mem.out
|
|
xtests-special += $(objpfx)bug-ga2-mem.out
|
|
endif
|
|
|
|
include ../Rules
|
|
|
|
ifeq ($(run-built-tests),yes)
|
|
# globtest and wordexp-test currently only works with shared libraries
|
|
ifeq (yes,$(build-shared))
|
|
$(objpfx)globtest.out: globtest.sh $(objpfx)globtest
|
|
$(SHELL) $< $(common-objpfx) '$(test-via-rtld-prefix)' \
|
|
'$(test-program-prefix)' '$(test-wrapper-env)'; \
|
|
$(evaluate-test)
|
|
$(objpfx)wordexp-tst.out: wordexp-tst.sh $(objpfx)wordexp-test
|
|
$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
|
|
'$(run-program-env)' '$(test-program-prefix-after-env)'; \
|
|
$(evaluate-test)
|
|
endif
|
|
endif
|
|
|
|
# If we will use the generic uname implementation, we must figure out what
|
|
# it will say by examining the system, and write the results in config-name.h.
|
|
uname.c: $(objpfx)config-name.h
|
|
$(objpfx)config-name.h: $(..)scripts/config-uname.sh $(common-objpfx)config.make
|
|
$(make-target-directory)
|
|
$< '$(config-os)' '$(config-release)' \
|
|
'$(config-machine)-$(config-vendor)' > $@.new
|
|
mv -f $@.new $@
|
|
|
|
CFLAGS-regex.c = -Wno-strict-prototypes
|
|
CFLAGS-getaddrinfo.c = -DRESOLVER -fexceptions
|
|
CFLAGS-pause.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pread.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pread64.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pwrite.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pwrite64.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-sleep.c = -fexceptions
|
|
CFLAGS-wait.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-waitid.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-waitpid.c = -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-getopt.c = -fexceptions
|
|
CFLAGS-wordexp.c = -fexceptions
|
|
CFLAGS-wordexp.os = -fomit-frame-pointer
|
|
CFLAGS-sysconf.c = -fexceptions -DGETCONF_DIR='"$(libexecdir)/getconf"'
|
|
CFLAGS-pathconf.c = -fexceptions
|
|
CFLAGS-fpathconf.c = -fexceptions
|
|
CFLAGS-spawn.c = -fexceptions
|
|
CFLAGS-spawn.os = -fomit-frame-pointer
|
|
CFLAGS-spawnp.c = -fexceptions
|
|
CFLAGS-spawnp.os = -fomit-frame-pointer
|
|
CFLAGS-spawni.c = -fexceptions
|
|
CFLAGS-spawni.os = -fomit-frame-pointer
|
|
CFLAGS-pause.c = -fexceptions
|
|
CFLAGS-glob.c = $(uses-callbacks) -fexceptions
|
|
CFLAGS-glob64.c = $(uses-callbacks) -fexceptions
|
|
CFLAGS-getconf.c = -DGETCONF_DIR='"$(libexecdir)/getconf"'
|
|
CFLAGS-execve.os = -fomit-frame-pointer
|
|
CFLAGS-fexecve.os = -fomit-frame-pointer
|
|
CFLAGS-execv.os = -fomit-frame-pointer
|
|
CFLAGS-execle.os = -fomit-frame-pointer
|
|
CFLAGS-execl.os = -fomit-frame-pointer
|
|
CFLAGS-execvp.os = -fomit-frame-pointer
|
|
CFLAGS-execlp.os = -fomit-frame-pointer
|
|
|
|
tstgetopt-ARGS = -a -b -cfoobar --required foobar --optional=bazbug \
|
|
--none random --col --color --colour
|
|
|
|
tst-exec-ARGS = -- $(host-test-program-cmd)
|
|
tst-exec-static-ARGS = $(tst-exec-ARGS)
|
|
tst-spawn-ARGS = -- $(host-test-program-cmd)
|
|
tst-spawn-static-ARGS = $(tst-spawn-ARGS)
|
|
tst-dir-ARGS = `pwd` `cd $(common-objdir)/$(subdir); pwd` `cd $(common-objdir); pwd` $(objpfx)tst-dir
|
|
tst-chmod-ARGS = $(objdir)
|
|
tst-vfork3-ARGS = --test-dir=$(objpfx)
|
|
|
|
tst-rxspencer-ARGS = --utf8 rxspencer/tests
|
|
tst-rxspencer-no-utf8-ARGS = rxspencer/tests
|
|
tst-pcre-ARGS = PCRE.tests
|
|
tst-boost-ARGS = BOOST.tests
|
|
bug-glob1-ARGS = "$(objpfx)"
|
|
tst-execvp3-ARGS = --test-dir=$(objpfx)
|
|
|
|
testcases.h: TESTS TESTS2C.sed
|
|
LC_ALL=C sed -f TESTS2C.sed < $< > $@T
|
|
mv -f $@T $@
|
|
|
|
ptestcases.h: PTESTS PTESTS2C.sed
|
|
LC_ALL=C sed -f PTESTS2C.sed < $< > $@T
|
|
mv -f $@T $@
|
|
|
|
test-xfail-annexc = yes
|
|
$(objpfx)annexc.out: $(objpfx)annexc
|
|
$(dir $<)$(notdir $<) '$(CC)' \
|
|
'$(patsubst %,-I../%,$(sorted-subdirs)) -I../include $(+sysdep-includes) $(sysincludes) -I..' > $@; \
|
|
$(evaluate-test)
|
|
|
|
annexc-CFLAGS = -O
|
|
$(objpfx)annexc: annexc.c
|
|
$(native-compile)
|
|
|
|
tst-fnmatch-ENV += MALLOC_TRACE=$(objpfx)tst-fnmatch.mtrace
|
|
|
|
$(objpfx)tst-fnmatch-mem.out: $(objpfx)tst-fnmatch.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-fnmatch.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex2-ENV = MALLOC_TRACE=$(objpfx)bug-regex2.mtrace
|
|
|
|
$(objpfx)bug-regex2-mem.out: $(objpfx)bug-regex2.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex2.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex14-ENV = MALLOC_TRACE=$(objpfx)bug-regex14.mtrace
|
|
|
|
$(objpfx)bug-regex14-mem.out: $(objpfx)bug-regex14.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex14.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex21-ENV = MALLOC_TRACE=$(objpfx)bug-regex21.mtrace
|
|
|
|
$(objpfx)bug-regex21-mem.out: $(objpfx)bug-regex21.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex21.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex31-ENV = MALLOC_TRACE=$(objpfx)bug-regex31.mtrace
|
|
|
|
$(objpfx)bug-regex31-mem.out: $(objpfx)bug-regex31.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex31.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-vfork3-ENV = MALLOC_TRACE=$(objpfx)tst-vfork3.mtrace
|
|
|
|
$(objpfx)tst-vfork3-mem.out: $(objpfx)tst-vfork3.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-vfork3.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
# tst-rxspencer.mtrace is not generated, only
|
|
# tst-rxspencer-no-utf8.mtrace, since otherwise the file has almost
|
|
# 100M and takes very long time to process.
|
|
tst-rxspencer-no-utf8-ENV += MALLOC_TRACE=$(objpfx)tst-rxspencer-no-utf8.mtrace
|
|
$(objpfx)tst-rxspencer-no-utf8-mem.out: $(objpfx)tst-rxspencer-no-utf8.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-rxspencer-no-utf8.mtrace \
|
|
> $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-pcre-ENV = MALLOC_TRACE=$(objpfx)tst-pcre.mtrace
|
|
$(objpfx)tst-pcre-mem.out: $(objpfx)tst-pcre.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-pcre.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-boost-ENV = MALLOC_TRACE=$(objpfx)tst-boost.mtrace
|
|
$(objpfx)tst-boost-mem.out: $(objpfx)tst-boost.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-boost.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
$(objpfx)tst-getconf.out: tst-getconf.sh $(objpfx)getconf
|
|
$(SHELL) $< $(common-objpfx) '$(built-program-cmd)'; \
|
|
$(evaluate-test)
|
|
|
|
$(objpfx)bug-ga2-mem.out: $(objpfx)bug-ga2.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-ga2.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-ga2-ENV = MALLOC_TRACE=$(objpfx)bug-ga2.mtrace
|
|
|
|
bug-glob2-ENV = MALLOC_TRACE=$(objpfx)bug-glob2.mtrace
|
|
|
|
$(objpfx)bug-glob2-mem.out: $(objpfx)bug-glob2.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-glob2.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
$(inst_libexecdir)/getconf: $(inst_bindir)/getconf \
|
|
$(objpfx)getconf.speclist FORCE
|
|
$(addprefix $(..)./scripts/mkinstalldirs ,\
|
|
$(filter-out $(wildcard $@),$@))
|
|
while read spec; do \
|
|
ln -f $< $@/$$spec.new || $(INSTALL_PROGRAM) $< $@/$$spec.new; \
|
|
mv -f $@/$$spec.new $@/$$spec; \
|
|
done < $(objpfx)getconf.speclist
|
|
|
|
$(objpfx)getconf.speclist: getconf-speclist.c posix-envs.def
|
|
$(compile.c) -E -o - \
|
|
| sed -n -e '/@@@PRESENT_/s/@@@PRESENT_//p' > $@.new
|
|
mv -f $@.new $@
|
|
|
|
# This file is only actually needed at install time. But forcing it to
|
|
# be built both makes it available for eyeball inspection and avoids the
|
|
# surprise of things that look like compilation being done by 'make install'.
|
|
others: $(objpfx)getconf.speclist
|