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.

llvm-svn: 315599
This commit is contained in:
Justin Bogner 2017-10-12 18:10:22 +00:00
parent 786ca6a166
commit 754a1a8a6f
3 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,2 @@
if config.enable_shared == 1:
config.available_features.add('rpath_in_use')