llvm-for-llvmta/test/tools/llvm-profdata/show-prof-info.test

13 lines
744 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
REQUIRES: zlib
; RUN: llvm-profdata merge -sample -extbinary -use-md5 -compress-all-sections -gen-partial-profile -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile.proftext -o %t.1.output
; RUN: wc -c < %t.1.output > %t.txt
; RUN: llvm-profdata show -sample -show-sec-info-only %t.1.output >> %t.txt
; RUN: FileCheck %s --input-file=%t.txt
; CHECK: [[FILESIZE:.*]]
; To check llvm-profdata shows the correct flags for ProfileSummarySection.
; CHECK: ProfileSummarySection {{.*}} Flags: {compressed,partial}
; To check llvm-profdata shows the correct flags for NameTableSection.
; CHECK: NameTableSection {{.*}} Flags: {compressed,fixlenmd5}
; To check llvm-profdata shows the correct file size.
; CHECK: [[FILESIZE]]