mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
5d6e7b38df
Teach llvm-cov to use the new llvm JSON library, and remove some redundant/brittle JSON serialization tests. llvm-svn: 342088
24 lines
1.5 KiB
C
24 lines
1.5 KiB
C
// The coverage reader should be able to handle universal binaries
|
|
|
|
// CHECK: [[@LINE+1]]| 100|int main
|
|
int main(int argc, const char *argv[]) {}
|
|
|
|
// RUN: llvm-profdata merge %S/Inputs/universal-binary.proftext -o %t.profdata
|
|
// RUN: llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -path-equivalence=/tmp,%S %s -arch x86_64 | FileCheck %s
|
|
|
|
// RUN: llvm-cov report %S/Inputs/universal-binary -arch x86_64 -object %S/Inputs/templateInstantiations.covmapping -arch i386 -instr-profile %t.profdata 2>&1 | FileCheck %s --check-prefix=COMBINED
|
|
// COMBINED: showTemplateInstantiations.cpp
|
|
// COMBINED-NEXT: universal-binary.c
|
|
|
|
// RUN: not llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -path-equivalence=/tmp,%S %s -arch i386 2>&1 | FileCheck --check-prefix=WRONG-ARCH %s
|
|
// WRONG-ARCH: Failed to load coverage
|
|
|
|
// RUN: not llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -path-equivalence=/tmp,%S %s -arch definitly_a_made_up_architecture 2>&1 | FileCheck --check-prefix=MADE-UP-ARCH %s
|
|
// MADE-UP-ARCH: Unknown architecture: definitly_a_made_up_architecture
|
|
|
|
// RUN: not llvm-cov show %S/Inputs/universal-binary -instr-profile %t.profdata -path-equivalence=/tmp,%S %s -arch=x86_64 -arch=x86_64 2>&1 | FileCheck --check-prefix=TOO-MANY-ARCH %s
|
|
// TOO-MANY-ARCH: Number of architectures doesn't match the number of objects
|
|
//
|
|
// RUN: not llvm-cov report -instr-profile %t.profdata 2>&1 | FileCheck --check-prefix=MISSING-BINARY %s
|
|
// MISSING-BINARY: No filenames specified!
|