mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-01 06:34:20 +00:00
[BOLT] Add bolt-runtime requirement to tests
These tests rely on the X86 runtime, add the REQUIRES. Differential Revision: https://reviews.llvm.org/D148737
This commit is contained in:
parent
b5f0a87686
commit
0044647fdc
@ -1,6 +1,6 @@
|
||||
# Try to instrument a very fast test. Input bin will not execute any code during
|
||||
# runtime besides returning zero in main, so it is a good trivial case.
|
||||
REQUIRES: system-linux
|
||||
REQUIRES: system-linux,bolt-runtime
|
||||
|
||||
RUN: %clang %p/Inputs/basic-instrumentation.s -Wl,-q -o %t.exe
|
||||
RUN: llvm-bolt %t.exe -o %t --instrument \
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Check instrumentation of C++ code with exceptions
|
||||
|
||||
REQUIRES: system-linux
|
||||
REQUIRES: system-linux,bolt-runtime
|
||||
|
||||
RUN: %clangxx %cxxflags -no-pie %p/Inputs/exceptions_split.cpp -Wl,-q -g -o %t_exc_split
|
||||
RUN: llvm-bolt %t_exc_split -o %t.exc --instrument --instrumentation-file=%t.fdata
|
||||
|
@ -36,7 +36,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
/*
|
||||
REQUIRES: system-linux && lit-max-individual-test-time
|
||||
REQUIRES: system-linux,bolt-runtime,lit-max-individual-test-time
|
||||
|
||||
RUN: %clang %cflags %s -o %t.exe -Wl,-q -pie -fpie
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
REQUIRES: system-linux
|
||||
REQUIRES: system-linux,bolt-runtime
|
||||
|
||||
RUN: %clangxx %cxxflags -pie -fPIC %p/Inputs/pie-exceptions-failed-split.s \
|
||||
RUN: -Wl,-q -o %t
|
||||
|
@ -1,7 +1,7 @@
|
||||
## Check that BOLT successfully splits C++ exception-handling code for
|
||||
## PIEs or shared objects.
|
||||
|
||||
REQUIRES: system-linux
|
||||
REQUIRES: system-linux,bolt-runtime
|
||||
|
||||
RUN: %clangxx %cxxflags -pie -fPIC %p/Inputs/exceptions_split.cpp -Wl,-q -o %t
|
||||
RUN: llvm-bolt %t -o %t.instr --instrument --instrumentation-file=%t.fdata
|
||||
|
@ -1,4 +1,4 @@
|
||||
REQUIRES: system-linux
|
||||
REQUIRES: system-linux,bolt-runtime
|
||||
|
||||
RUN: %clang %p/Inputs/basic-instrumentation.s -Wl,-q -o %t.exe
|
||||
RUN: llvm-bolt %t.exe -o %t --instrument
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Meta test using merge-fdata binary
|
||||
UNSUPPORTED: asan
|
||||
# Instrumentation currently only works on X86
|
||||
REQUIRES: x86_64-linux
|
||||
REQUIRES: x86_64-linux,bolt-runtime
|
||||
|
||||
# Instrumentation, should test:
|
||||
# - Direct branches
|
||||
|
Loading…
x
Reference in New Issue
Block a user