aboutsummaryrefslogtreecommitdiff
path: root/test/tools
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2017-10-12 18:10:22 +0000
committerJustin Bogner <mail@justinbogner.com>2017-10-12 18:10:22 +0000
commitc209885bf3bc0f1c98d0628abba1d39c2d6fc4bc (patch)
tree333f72f022b2b88a16f58a948c78bf50382b6fd0 /test/tools
parent3df0d5d17189f98590861270e65ea0e1efe531bf (diff)
downloadllvm-c209885bf3bc0f1c98d0628abba1d39c2d6fc4bc.tar.gz
llvm-isel-fuzzer: Work around BUILD_SHARED_LIBS testing issues
Building with BUILD_SHARED_LIBS makes it tricky to copy around executables at will, since they won't be able to find the LLVM libraries any more. This makes testing a feature that's based on the executable name problematic, so we'll just disable these two tests in that configuration. We could potentially fix this by symlinking the lib directory into the test directory, but that wouldn't work on windows, and losing testing on windows would be far worse than losing testing on a configuration that's barely even supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools')
-rw-r--r--test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll4
-rw-r--r--test/tools/llvm-isel-fuzzer/execname-options.ll4
-rw-r--r--test/tools/llvm-isel-fuzzer/lit.local.cfg2
3 files changed, 10 insertions, 0 deletions
diff --git a/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll b/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
index baf4b0f87a6..c713ee14045 100644
--- a/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
+++ b/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
@@ -1,3 +1,7 @@
+; If the binary looks up libraries using an rpath, we can't test this
+; without copying the whole lib dir or polluting the build dir.
+; UNSUPPORTED: rpath_in_use
+
; REQUIRES: aarch64-registered-target
; RUN: echo > %t.input
diff --git a/test/tools/llvm-isel-fuzzer/execname-options.ll b/test/tools/llvm-isel-fuzzer/execname-options.ll
index 61fbab3897e..2b536c649a0 100644
--- a/test/tools/llvm-isel-fuzzer/execname-options.ll
+++ b/test/tools/llvm-isel-fuzzer/execname-options.ll
@@ -1,3 +1,7 @@
+; If the binary looks up libraries using an rpath, we can't test this
+; without copying the whole lib dir or polluting the build dir.
+; UNSUPPORTED: rpath_in_use
+
; RUN: echo > %t.input
; RUN: cp llvm-isel-fuzzer %t.bin=gisel
diff --git a/test/tools/llvm-isel-fuzzer/lit.local.cfg b/test/tools/llvm-isel-fuzzer/lit.local.cfg
new file mode 100644
index 00000000000..56bb62f4f5f
--- /dev/null
+++ b/test/tools/llvm-isel-fuzzer/lit.local.cfg
@@ -0,0 +1,2 @@
+if config.enable_shared == 1:
+ config.available_features.add('rpath_in_use')