Permalink
Browse files

the test failures are all about svnadmin permissions problems...

  • Loading branch information...
1 parent 99382de commit f8b51f17591f55768f14860562db8f29790e2ac9 @jettero committed Jul 20, 2009
Showing with 24 additions and 3 deletions.
  1. +4 −0 Changes
  2. +18 −1 Makefile.PL
  3. +1 −1 SVNReplay.pm
  4. +1 −1 git-svn-replay
View
@@ -1,3 +1,7 @@
+1.0213: Mon Jul 20 2009
+ - I made the makefile smarter about svn permissions to avoid
+ test problems
+
1.0211: Sun May 3 17:22:29 EDT 2009
- fixed a bunch of bad assumptions in the tests.
View
@@ -16,6 +16,23 @@ open POPEN_GIT, "git help|" or $pfft ++; 1 while <POPEN_GIT>;
close POPEN_GIT or $pfft ++;
if( $pfft ) {
+ warn "skipping most tests because you either don't have svn, git, or don't have permission to use them\n";
+ sleep 1;
+
+ open SKIP, ">SKIP_MOST_TESTS"; close SKIP;
+}
+
+$pfft = 0;
+if( not -d "makefile_test" ) {
+ # ideally, we'd remove the makefile_test dir, but that's a lotta work, and this is close enough
+ open POPEN_SVNADMIN, "svnadmin create makefile_test|" or $pfft ++; 1 while <POPEN_SVNADMIN>;
+ close POPEN_SVNADMIN or $pfft ++;
+}
+
+if( $pfft or not -d "makefile_test" ) {
+ warn "skipping most tests because you either you don't have svnadmin, or don't have permission to use it\n";
+ sleep 1;
+
open SKIP, ">SKIP_MOST_TESTS"; close SKIP;
}
@@ -48,7 +65,7 @@ WriteMakefile(
LICENSE => 'GPL',
) : ()),
- clean => { FILES => 'SKIP_MOST_TESTS *.repo *.co *.rdb dist' },
+ clean => { FILES => 'SKIP_MOST_TESTS *.repo *.co *.rdb dist makefile_test' },
);
sub MY::postamble {
View
@@ -13,7 +13,7 @@ use IPC::System::Simple qw(systemx capturex);
use Date::Parse; # dates in (Date::Manip will not handle git/date-R time...)
use POSIX; # dates out
-our $VERSION = '1.0211';
+our $VERSION = '1.0213';
our %DEFAULTS = (
db_file => "replay.rdb",
View
@@ -3,7 +3,7 @@
use strict;
use warnings;
-our $VERSION = '1.0211';
+our $VERSION = '1.0213';
use Git::SVNReplay;
use Getopt::Long;

0 comments on commit f8b51f1

Please sign in to comment.