1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/tools/llvm-profdata/roundtrip-compress.test
Hans Wennborg 975039af11 Add more diff -b to roundtrip-compress.test
It was missing on the first test invocation. The flag is necessary to
ignore line-ending differences on Windows.
2019-12-10 10:32:16 +01:00

11 lines
745 B
Plaintext

REQUIRES: zlib
# Round trip from text --> compressed extbinary --> text
RUN: llvm-profdata merge --sample --extbinary -compress-all-sections -output=%t.1.profdata %S/Inputs/sample-profile.proftext
RUN: llvm-profdata merge --sample --text -output=%t.1.proftext %t.1.profdata
RUN: diff -b %t.1.proftext %S/Inputs/sample-profile.proftext
# Round trip from text --> binary --> compressed extbinary --> text
RUN: llvm-profdata merge --sample --binary -output=%t.2.profdata %S/Inputs/sample-profile.proftext
RUN: llvm-profdata merge --sample --extbinary -compress-all-sections -output=%t.3.profdata %t.2.profdata
RUN: llvm-profdata merge --sample --text -output=%t.2.proftext %t.3.profdata
RUN: diff -b %t.2.proftext %S/Inputs/sample-profile.proftext