[llvm-commits] CVS: llvm-test/GenerateReport.pl

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 22 21:38:50 PST 2005



Changes in directory llvm-test:

GenerateReport.pl updated: 1.24 -> 1.25
---
Log message:

add an option to remove all directories from test names.


---
Diffs of the changes:  (+10 -0)

 GenerateReport.pl |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm-test/GenerateReport.pl
diff -u llvm-test/GenerateReport.pl:1.24 llvm-test/GenerateReport.pl:1.25
--- llvm-test/GenerateReport.pl:1.24	Mon Nov  8 15:06:21 2004
+++ llvm-test/GenerateReport.pl	Tue Mar 22 23:38:34 2005
@@ -47,6 +47,7 @@
 # If the report wants us to trim repeated path prefixes off of the start of the
 # strings in the first column of the report, we can do that.
 my $TrimRepeatedPrefix = 0;
+my $TrimAllDirectories = 0;
 
 # Helper functions which may be called by the report description files...
 sub SumCols {
@@ -166,6 +167,15 @@
   }
 }
 
+# If the report wants it, we can trim of all of the directories part of the
+# first column.
+if ($TrimAllDirectories and scalar(@Values)) {
+  foreach $Row (@Values) {
+    $Row->[0] =~ s|^.*/||g;
+  }
+}
+
+
 #
 # Sort table now...
 #






More information about the llvm-commits mailing list