brintos

brintos / llvm-project-archived public Read only

0
0
Text · 967 B · 3dc9892 Raw
28 lines · plain
1; If the binary looks up libraries using an rpath, we can't test this2; without copying the whole lib dir or polluting the build dir.3; REQUIRES: static-libs4 5; The above also applies if the binary is built with libc++.6; UNSUPPORTED: libcxx-used7 8; RUN: echo > %t.input9 10; workaround for https://openradar.appspot.com/FB891424311; RUN: rm -f %t.bin--gisel12; RUN: rm -f %t.bin--gisel-O213; RUN: rm -f %t.bin--unexist14 15; RUN: cp llvm-isel-fuzzer %t.bin--gisel16; RUN: not %t.bin--gisel %t.input 2>&1 | FileCheck -check-prefix=GISEL %s17; GISEL: Injected args: -global-isel -O018; GISEL: -mtriple must be specified19 20; RUN: cp llvm-isel-fuzzer %t.bin--gisel-O221; RUN: not %t.bin--gisel-O2 %t.input 2>&1 | FileCheck -check-prefix=GISEL-O2 %s22; GISEL-O2: Injected args: -global-isel -O0 -O223; GISEL-O2: -mtriple must be specified24 25; RUN: cp llvm-isel-fuzzer %t.bin--unexist26; RUN: not %t.bin--unexist %t.input 2>&1 | FileCheck -check-prefix=NO-OPT %s27; NO-OPT: Unknown option:28