1754a1a8aSJustin Bogner; If the binary looks up libraries using an rpath, we can't test this 2754a1a8aSJustin Bogner; without copying the whole lib dir or polluting the build dir. 39c03fd5fSJustin Bogner; REQUIRES: static-libs 4754a1a8aSJustin Bogner 5fe4f6d53SXing Xue; The above also applies if the binary is built with libc++. 6fe4f6d53SXing Xue; UNSUPPORTED: libcxx-used 7fe4f6d53SXing Xue 89ea7fbd1SJustin Bogner; RUN: echo > %t.input 99ea7fbd1SJustin Bogner 10*ba3bc2fdSNico Weber; workaround for https://openradar.appspot.com/FB8914243 11*ba3bc2fdSNico Weber; RUN: rm -f %t.bin--gisel 12*ba3bc2fdSNico Weber; RUN: rm -f %t.bin--gisel-O2 13*ba3bc2fdSNico Weber; RUN: rm -f %t.bin--unexist 14*ba3bc2fdSNico Weber 158bc23ab6SMatt Morehouse; RUN: cp llvm-isel-fuzzer %t.bin--gisel 168bc23ab6SMatt Morehouse; RUN: not %t.bin--gisel %t.input 2>&1 | FileCheck -check-prefix=GISEL %s 179ea7fbd1SJustin Bogner; GISEL: Injected args: -global-isel -O0 189ea7fbd1SJustin Bogner; GISEL: -mtriple must be specified 199ea7fbd1SJustin Bogner 208bc23ab6SMatt Morehouse; RUN: cp llvm-isel-fuzzer %t.bin--gisel-O2 218bc23ab6SMatt Morehouse; RUN: not %t.bin--gisel-O2 %t.input 2>&1 | FileCheck -check-prefix=GISEL-O2 %s 229ea7fbd1SJustin Bogner; GISEL-O2: Injected args: -global-isel -O0 -O2 239ea7fbd1SJustin Bogner; GISEL-O2: -mtriple must be specified 249ea7fbd1SJustin Bogner 258bc23ab6SMatt Morehouse; RUN: cp llvm-isel-fuzzer %t.bin--unexist 268bc23ab6SMatt Morehouse; RUN: not %t.bin--unexist %t.input 2>&1 | FileCheck -check-prefix=NO-OPT %s 279ea7fbd1SJustin Bogner; NO-OPT: Unknown option: 28