[SCM] Samba Shared Repository - branch master updated

Matthieu Patou mat at samba.org
Tue Oct 26 14:43:01 MDT 2010


The branch, master has been updated
       via  d8e246c Add a script for formating test result of st/subunit
       via  62eb450 replace: restore the order for #define + rep_strtoll
      from  ba6afbd s4:librpc: we don't need dcerpc client bindings for dns.idl

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d8e246cf8a4569baaa49359ceb3e21c7aa4af1f6
Author: Matthieu Patou <mat at matws.net>
Date:   Fri Oct 22 11:56:40 2010 +0400

    Add a script for formating test result of st/subunit
    
    This script show the time of each test and tests are sorted by execution
    time (from the slowest to the quickest)
    
    Autobuild-User: Matthieu Patou <mat at samba.org>
    Autobuild-Date: Tue Oct 26 20:42:11 UTC 2010 on sn-devel-104

commit 62eb450bc24dd1a79074659e91fe87394f780cf8
Author: Matthieu Patou <mat at matws.net>
Date:   Fri Oct 22 10:23:23 2010 +0400

    replace: restore the order for #define + rep_strtoll

-----------------------------------------------------------------------

Summary of changes:
 lib/replace/replace.h                  |    6 +++---
 source4/scripting/devel/show_test_time |   19 +++++++++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)
 create mode 100755 source4/scripting/devel/show_test_time


Changeset truncated at 500 lines:

diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 15ec80a..f738658 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -286,12 +286,12 @@ char *rep_strtok_r(char *s, const char *delim, char **save_ptr);
 
 
 #ifndef HAVE_STRTOLL
-long long int rep_strtoll(const char *str, char **endptr, int base);
 #define strtoll rep_strtoll
+long long int rep_strtoll(const char *str, char **endptr, int base);
 #else
 #ifdef HAVE_BSD_STRTOLL
-long long int rep_strtoll(const char *str, char **endptr, int base);
 #define strtoll rep_strtoll
+long long int rep_strtoll(const char *str, char **endptr, int base);
 #endif
 #endif
 
@@ -300,8 +300,8 @@ long long int rep_strtoll(const char *str, char **endptr, int base);
 unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
 #else
 #ifdef HAVE_BSD_STRTOLL /* yes, it's not HAVE_BSD_STRTOULL */
-unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
 #define strtoull rep_strtoull
+unsigned long long int rep_strtoull(const char *str, char **endptr, int base);
 #endif
 #endif
 
diff --git a/source4/scripting/devel/show_test_time b/source4/scripting/devel/show_test_time
new file mode 100755
index 0000000..d9a18f0
--- /dev/null
+++ b/source4/scripting/devel/show_test_time
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+#
+use strict;
+my %h;
+open(FH, "subunit-ls --times --no-passthrough|") || die "pb with subunit-ls";
+while(<FH>)
+{
+	chomp();
+	my @l = split(/ /);
+	my $val = @l[scalar(@l)-1];
+	$h{join(' ', at l)} = $val;
+}
+
+my @sorted = sort { $h{$b}<=>$h{$a} } keys(%h);
+use Data::Dumper;
+foreach my $l (@sorted)
+{
+	print "$l\n";
+}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list