90revml2svn_2.t #2

  • //
  • guest/
  • perforce_software/
  • revml/
  • t/
  • 90revml2svn_2.t
  • View
  • Commits
  • Open Download .zip Download (1 KB)
#!/usr/local/bin/perl -w

=head1 NAME

revml2svn.t - testing of vcp svn i/o

=cut

use strict ;

use Carp ;
use Cwd ;
use File::Path qw( rmtree );
use Test ;
use VCP::TestUtils ;

my @vcp = vcp_cmd ;

my $t = -d 't' ? 't/' : '' ;

my $cwd = cwd;

if ( $^O =~ /Win32/ ) {
    $cwd =~ s{\A[A-Z]:}{};
}

my $module = 'foo' ;  ## Must match the rev_root in the testrevml files

my $infile_0 = $t . "test-svn-in-0.revml";

my $svnroot_2  = "${t}svnroot_2";
my $svnstate_2 = "${t}svnstate_2";
my $deepdir = "one/two/three/four/five";
my $svn_spec_2 = "svn:file://$cwd/$svnroot_2:/$module/$deepdir/" ;

my @tests = (

##
## revml->svn, re-rooting a dir tree
##
sub {
   my $out;
   run [ @vcp, "revml:$infile_0", $svn_spec_2,
      "--create-repo", "--delete-repo", "--db-dir=$svnstate_2", "--repo-id=svn:test_repository"
      ], \undef, \$out
      or die "`vcp revml:$infile_0 $svn_spec_2` returned $?" ;

   ok 1;
},

);



plan tests => scalar( @tests ) ;

my $why_skip ;

$why_skip .= svn_borken ;
$why_skip ? skip( $why_skip, 0 ) : $_->() for @tests ;
# Change User Description Committed
#2 5404 Barrie Slaymaker - SVN support added
- Makefile gives clearer notices about missing optional
  prereqs.
- VCP::Filter::labelmap and VCP::Filter::map: <<skip>> replaces
  deprecated <<delete>> to be clearer that no revisions
  are deleted from either repository but some just are
  skipped and not inserted.
- VCP::Filter::map: support added for SVN-like branch labels
- VCP::Source: support added for ISO8601 timestamps
  emitted by SVN.
#1 5352 Barrie Slaymaker - Created t/90revml2svn_2.t
//guest/perforce_software/revml/t/90revml2cvs_2.t
#6 3428 Barrie Slaymaker - Test suite cleanup
#5 2926 John Fetkovich remove --state-location switch
       add --db-dir and --repo-id switches
       build state location from concatenation of those two.
#4 2716 Barrie Slaymaker Shorten, standardize state dir names
#3 2715 Barrie Slaymaker Simplify test suite
#2 2649 John Fetkovich Change test suites because of unreliable 'cvs history' command.
#1 2622 John Fetkovich Split revml2cvs.t into three files, then improved;
       particularly made changes to use
       parse_files_and_revids_from_revml (already in TestUtils.pm)
       and parse_files_and_revids_from_cvs_history (newly added to
       TestUtils.pm) to do checks on changes.