summaryrefslogtreecommitdiffstats
path: root/llvm/test/Reduce/remove-global-vars.ll
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-09-16 23:41:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2019-09-16 23:41:19 +0000
commitcb4aee7318afbe36078c434fff3a3e8a0bcdf5cf (patch)
tree2fc81ad29f42873f0dfee28670fdd9802dca7b76 /llvm/test/Reduce/remove-global-vars.ll
parent4a249553fe9c1dbb0ffaf66f3bef8056ad6dde1f (diff)
downloadbcm5719-llvm-cb4aee7318afbe36078c434fff3a3e8a0bcdf5cf.tar.gz
bcm5719-llvm-cb4aee7318afbe36078c434fff3a3e8a0bcdf5cf.zip
llvm-reduce: Make tests shell-independent by passing the interpreter on the command line rather than using #! in the test file
llvm-svn: 372049
Diffstat (limited to 'llvm/test/Reduce/remove-global-vars.ll')
-rw-r--r--llvm/test/Reduce/remove-global-vars.ll13
1 files changed, 2 insertions, 11 deletions
diff --git a/llvm/test/Reduce/remove-global-vars.ll b/llvm/test/Reduce/remove-global-vars.ll
index 900774762c1..b876acd1b8f 100644
--- a/llvm/test/Reduce/remove-global-vars.ll
+++ b/llvm/test/Reduce/remove-global-vars.ll
@@ -1,17 +1,8 @@
; Test that llvm-reduce can remove uninteresting Global Variables as well as
; their direct uses (which in turn are replaced with 'undef').
;
-; RUN: rm -rf %t
-; RUN: mkdir %t
-; get the python path from lit
-; RUN: echo "#!" %python > %t/test.py
-; then include the rest of the test script
-; RUN: cat %p/Inputs/remove-global-vars.py >> %t/test.py
-; RUN: chmod +x %t/test.py
-
-; RUN: llvm-reduce --test %t/test.py %s -o %t/out.ll
-; RUN: cat %t/out.ll | FileCheck -implicit-check-not=uninteresting %s
-; REQUIRES: shell
+; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-global-vars.py %s -o %t
+; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s
; CHECK: @interesting = global
@interesting = global i32 0, align 4
OpenPOWER on IntegriCloud