[llvm] r231686 - InstrProf: Use the proftext format for these	coverage tests
    Justin Bogner 
    mail at justinbogner.com
       
    Mon Mar  9 11:54:59 PDT 2015
    
    
  
Author: bogner
Date: Mon Mar  9 13:54:58 2015
New Revision: 231686
URL: http://llvm.org/viewvc/llvm-project?rev=231686&view=rev
Log:
InstrProf: Use the proftext format for these coverage tests
This format's easier to understand and update by hand.
Added:
    llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext
    llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.proftext
Removed:
    llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata
    llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.profdata
Modified:
    llvm/trunk/test/tools/llvm-cov/showLineExecutionCounts.cpp
    llvm/trunk/test/tools/llvm-cov/showRegionMarkers.cpp
Removed: llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata?rev=231685&view=auto
==============================================================================
Binary file - no diff available.
Added: llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext?rev=231686&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext (added)
+++ llvm/trunk/test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext Mon Mar  9 13:54:58 2015
@@ -0,0 +1,8 @@
+main
+0x000000000028434d
+5
+1
+0
+100
+1
+0
Removed: llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.profdata
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.profdata?rev=231685&view=auto
==============================================================================
Binary file - no diff available.
Added: llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.proftext
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.proftext?rev=231686&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.proftext (added)
+++ llvm/trunk/test/tools/llvm-cov/Inputs/regionMarkers.proftext Mon Mar  9 13:54:58 2015
@@ -0,0 +1,8 @@
+main
+0x000000000028434d
+5
+1
+0
+100
+1
+0
Modified: llvm/trunk/test/tools/llvm-cov/showLineExecutionCounts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/showLineExecutionCounts.cpp?rev=231686&r1=231685&r2=231686&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/showLineExecutionCounts.cpp (original)
+++ llvm/trunk/test/tools/llvm-cov/showLineExecutionCounts.cpp Mon Mar  9 13:54:58 2015
@@ -1,5 +1,5 @@
-// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s
-// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %S/Inputs/lineExecutionCounts.profdata -no-colors -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s
+// Basic handling of line counts.
+// RUN: llvm-profdata merge %S/Inputs/lineExecutionCounts.proftext -o %t.profdata
 
 // before any coverage              // WHOLE-FILE:    | [[@LINE]]|// before
                                     // FILTER-NOT:    | [[@LINE-1]]|// before
@@ -26,5 +26,8 @@ int main() {
 // after coverage                   // WHOLE-FILE:    | [[@LINE]]|// after
                                     // FILTER-NOT:    | [[@LINE-1]]|// after
 
+// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -no-colors -filename-equivalence %s | FileCheck -check-prefix=CHECK -check-prefix=WHOLE-FILE %s
+// RUN: llvm-cov show %S/Inputs/lineExecutionCounts.covmapping -instr-profile %t.profdata -no-colors -filename-equivalence -name=main %s | FileCheck -check-prefix=CHECK -check-prefix=FILTER %s
+
 // llvm-cov doesn't work on big endian yet
 // XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
Modified: llvm/trunk/test/tools/llvm-cov/showRegionMarkers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/showRegionMarkers.cpp?rev=231686&r1=231685&r2=231686&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/showRegionMarkers.cpp (original)
+++ llvm/trunk/test/tools/llvm-cov/showRegionMarkers.cpp Mon Mar  9 13:54:58 2015
@@ -1,4 +1,4 @@
-// RUN: llvm-cov show %S/Inputs/regionMarkers.covmapping -instr-profile %S/Inputs/regionMarkers.profdata -show-regions -dump -filename-equivalence %s 2>&1 | FileCheck %s
+// RUN: llvm-profdata merge %S/Inputs/regionMarkers.proftext -o %t.profdata
 
 int main() {                      // CHECK: Marker at [[@LINE]]:12 = 1
   int x = 0;
@@ -22,5 +22,7 @@ int main() {                      // CHE
   return 0;
 }
 
+// RUN: llvm-cov show %S/Inputs/regionMarkers.covmapping -instr-profile %t.profdata -show-regions -dump -filename-equivalence %s 2>&1 | FileCheck %s
+
 // llvm-cov doesn't work on big endian yet
 // XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
    
    
More information about the llvm-commits
mailing list