[PATCH] D148737: [BOLT] Add bolt-runtime requirement to tests
Nathan Sidwell via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 16:43:01 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0044647fdcbb: [BOLT] Add bolt-runtime requirement to tests (authored by urnathan).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148737/new/
https://reviews.llvm.org/D148737
Files:
bolt/test/runtime/X86/basic-instrumentation.test
bolt/test/runtime/X86/exceptions-instrumentation.test
bolt/test/runtime/X86/instrumentation-indirect.c
bolt/test/runtime/X86/pie-exceptions-failed-split.test
bolt/test/runtime/X86/pie-exceptions-split.test
bolt/test/runtime/X86/section-order.test
bolt/test/runtime/meta-merge-fdata.test
Index: bolt/test/runtime/meta-merge-fdata.test
===================================================================
--- bolt/test/runtime/meta-merge-fdata.test
+++ bolt/test/runtime/meta-merge-fdata.test
@@ -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
Index: bolt/test/runtime/X86/section-order.test
===================================================================
--- bolt/test/runtime/X86/section-order.test
+++ bolt/test/runtime/X86/section-order.test
@@ -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
Index: bolt/test/runtime/X86/pie-exceptions-split.test
===================================================================
--- bolt/test/runtime/X86/pie-exceptions-split.test
+++ bolt/test/runtime/X86/pie-exceptions-split.test
@@ -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
Index: bolt/test/runtime/X86/pie-exceptions-failed-split.test
===================================================================
--- bolt/test/runtime/X86/pie-exceptions-failed-split.test
+++ bolt/test/runtime/X86/pie-exceptions-failed-split.test
@@ -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
Index: bolt/test/runtime/X86/instrumentation-indirect.c
===================================================================
--- bolt/test/runtime/X86/instrumentation-indirect.c
+++ bolt/test/runtime/X86/instrumentation-indirect.c
@@ -36,7 +36,7 @@
}
/*
-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
Index: bolt/test/runtime/X86/exceptions-instrumentation.test
===================================================================
--- bolt/test/runtime/X86/exceptions-instrumentation.test
+++ bolt/test/runtime/X86/exceptions-instrumentation.test
@@ -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
Index: bolt/test/runtime/X86/basic-instrumentation.test
===================================================================
--- bolt/test/runtime/X86/basic-instrumentation.test
+++ bolt/test/runtime/X86/basic-instrumentation.test
@@ -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 \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148737.515131.patch
Type: text/x-patch
Size: 3381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230419/76fa0e9e/attachment.bin>
More information about the llvm-commits
mailing list