[llvm] r348095 - [test] Fix BugPoint/compile-custom.ll to use detected python exec

Michal Gorny via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 2 08:49:23 PST 2018


Author: mgorny
Date: Sun Dec  2 08:49:23 2018
New Revision: 348095

URL: http://llvm.org/viewvc/llvm-project?rev=348095&view=rev
Log:
[test] Fix BugPoint/compile-custom.ll to use detected python exec

Spawn the custom compile command in BugPoint/compile-custom.ll via
%python rather than relying on implicit 'env python' shebang, in order
to fix it on systems that don't have 'python' executable such as NetBSD.

Differential Revision: https://reviews.llvm.org/D55161

Modified:
    llvm/trunk/test/BugPoint/compile-custom.ll

Modified: llvm/trunk/test/BugPoint/compile-custom.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/compile-custom.ll?rev=348095&r1=348094&r2=348095&view=diff
==============================================================================
--- llvm/trunk/test/BugPoint/compile-custom.ll (original)
+++ llvm/trunk/test/BugPoint/compile-custom.ll Sun Dec  2 08:49:23 2018
@@ -1,4 +1,4 @@
-; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%/s.py arg1 arg2" --opt-command opt --output-prefix %t %s | FileCheck %s
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext --compile-custom --compile-command="%python %/s.py arg1 arg2" --opt-command opt --output-prefix %t %s | FileCheck %s
 ; REQUIRES: loadable_module
 
 ; Test that arguments are correctly passed in --compile-command.  The output




More information about the llvm-commits mailing list