aboutsummaryrefslogtreecommitdiff
path: root/Makefile.programs
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-30 03:04:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-30 03:04:20 +0000
commit705240d8920262a6a0ecbcc1c9e5b5a1f9dd0dd0 (patch)
tree7c2aa174e5d2aa31eb07448b63e427a17a207ab2 /Makefile.programs
parent0d2eec83a3e7cc7ab29f784000201ffce4e0aaac (diff)
build: Add support for an EXECUTION_ENVIRONMENT_OVERRIDES variable, which can
used to override various environment variables for test execution. Useful for tweaking things like dyld library paths, for example. git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@130578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.programs')
-rw-r--r--Makefile.programs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.programs b/Makefile.programs
index 4ef000bc..5e01be7b 100644
--- a/Makefile.programs
+++ b/Makefile.programs
@@ -145,6 +145,10 @@ RUNSAFELY := $(RUNSAFELY) $(RUNTIMELIMIT) $(EXIT_OK)
RUNSAFELYLOCAL := $(RUNSAFELYLOCAL) $(RUNTIMELIMIT) $(EXIT_OK)
endif
+ifdef EXECUTION_ENVIRONMENT_OVERRIDES
+RUNSAFELY := $(RUNSAFELY) -u 'env $(EXECUTION_ENVIRONMENT_OVERRIDES)' $(RUNSAFELY)
+endif
+
RUNTOOLSAFELY := $(PROGDIR)/RunToolSafely.sh $(RUNTIMELIMIT)
ifndef STDIN_FILENAME