brintos

brintos / llvm-project-archived public Read only

0
0
Text · 837 B · 2c006e9 Raw
20 lines · plain
1## Tests whether llvm-bolt is able to redirect logs when processing a simple2## input. If this test fails on your changes, please use BinaryContext::outs()3## to print BOLT logging instead of llvm::outs().4 5RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe6RUN: llvm-bolt %t.exe -o %t.null --data %p/Inputs/blarge.fdata -v=2 \7RUN:   --reorder-blocks=normal --print-finalized --log-file=%t.log  2>&1 \8RUN:   | FileCheck --check-prefix=CHECK --allow-empty %s9RUN: FileCheck %s --check-prefix=CHECK-LOG --input-file %t.log10 11CHECK-NOT: BOLT-INFO12CHECK-NOT: BOLT-WARNING13CHECK-NOT: BOLT-ERROR14 15## Check some usual BOLT output lines are being redirected to the log file16CHECK-LOG: BOLT-INFO: Target architecture17CHECK-LOG: BOLT-INFO: BOLT version18CHECK-LOG: BOLT-INFO: basic block reordering modified layout19CHECK-LOG:    Binary Function "main"20