[llvm] r315599 - llvm-isel-fuzzer: Work around BUILD_SHARED_LIBS testing issues

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 11:10:22 PDT 2017


Author: bogner
Date: Thu Oct 12 11:10:22 2017
New Revision: 315599

URL: http://llvm.org/viewvc/llvm-project?rev=315599&view=rev
Log:
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.

Added:
    llvm/trunk/test/tools/llvm-isel-fuzzer/lit.local.cfg
Modified:
    llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
    llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll

Modified: llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll?rev=315599&r1=315598&r2=315599&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll (original)
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll Thu Oct 12 11:10:22 2017
@@ -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

Modified: llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll?rev=315599&r1=315598&r2=315599&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll (original)
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll Thu Oct 12 11:10:22 2017
@@ -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

Added: llvm/trunk/test/tools/llvm-isel-fuzzer/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/lit.local.cfg?rev=315599&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/lit.local.cfg (added)
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/lit.local.cfg Thu Oct 12 11:10:22 2017
@@ -0,0 +1,2 @@
+if config.enable_shared == 1:
+   config.available_features.add('rpath_in_use')




More information about the llvm-commits mailing list