You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by rj...@apache.org on 2011/05/26 09:48:19 UTC

svn commit: r1127812 - in /perl/Apache-Test/trunk: Changes README lib/Apache/TestSort.pm

Author: rjung
Date: Thu May 26 07:48:18 2011
New Revision: 1127812

URL: http://svn.apache.org/viewvc?rev=1127812&view=rev
Log:
Run t/TEST tests by default in alphabetical order and
only t/SMOKE tests by default in random order.

Modified:
    perl/Apache-Test/trunk/Changes
    perl/Apache-Test/trunk/README
    perl/Apache-Test/trunk/lib/Apache/TestSort.pm

Modified: perl/Apache-Test/trunk/Changes
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/Changes?rev=1127812&r1=1127811&r2=1127812&view=diff
==============================================================================
--- perl/Apache-Test/trunk/Changes (original)
+++ perl/Apache-Test/trunk/Changes Thu May 26 07:48:18 2011
@@ -8,6 +8,9 @@ Changes - Apache::Test change logfile
 
 =item 1.37-dev
 
+Run t/TEST tests by default in alphabetical order and
+only t/SMOKE tests by default in random order. [Rainer Jung]
+
 Add t_file_watch_for to Apache::TestUtil [Torsten Foertsch]
 
 Add $boolean parameter to Apache::TestHandler::ok and Apache::TestHandler::ok1

Modified: perl/Apache-Test/trunk/README
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/README?rev=1127812&r1=1127811&r2=1127812&view=diff
==============================================================================
--- perl/Apache-Test/trunk/README (original)
+++ perl/Apache-Test/trunk/README Thu May 26 07:48:18 2011
@@ -203,17 +203,14 @@ run all tests through mod_proxy
 
 run all tests 10 times in a random order (the seed is autogenerated
 and reported) 
-% t/TEST -times=10 -order=random
+% t/SMOKE -times=10 -order=random
 
 run all tests 10 times in a random order using the seed obtained from
 the previous random run (e.g. 2352211):
-% t/TEST -times=10 -order=2352211
+% t/SMOKE -times=10 -order=2352211
 
 rotate all tests 10 times (a, b, c, a, b, c)
-% t/TEST -times=10 -order=rotate
-
-repeat all tests 10 times (a, a, b, b, c, c)
-% t/TEST -times=10 -order=repeat
+% t/SMOKE -times=10 -order=repeat
 
 When certain tests fail when running with -times option, you want to
 find out the minimal sequence of tests that lead to the

Modified: perl/Apache-Test/trunk/lib/Apache/TestSort.pm
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/lib/Apache/TestSort.pm?rev=1127812&r1=1127811&r2=1127812&view=diff
==============================================================================
--- perl/Apache-Test/trunk/lib/Apache/TestSort.pm (original)
+++ perl/Apache-Test/trunk/lib/Apache/TestSort.pm Thu May 26 07:48:18 2011
@@ -54,7 +54,7 @@ sub random {
 sub run {
     my($self, $list, $args) = @_;
 
-    my $order = $args->{order} || 'random';
+    my $order = $args->{order} || 'repeat';
     if ($order =~ /^\d+$/) {
         #dont want an explicit -seed option but env var can be a pain
         #so if -order is number assume it is the random seed