#!/usr/local/bin/perl -w
=head1 NAME
03dest_vss.t - testing of VCP::Dest::vss services
=cut
use strict ;
use Carp ;
use Test ;
use VCP::Dest::vss;
my $p;
my $o;
my @options = (
"--repo-id=repo-idfoo",
"--db-dir=db-dirfoo",
"--mkss",
"--delete-ssdir",
);
my @tests = (
sub {
$p = VCP::Dest::vss->new() ;
ok ref $p, 'VCP::Dest::vss';
},
sub {
$o = join( " ", map "'$_'", $p->options_as_strings );
ok length $o;
},
(
map {
my $option = $_;
$option =~ s/=.*//;
sub {
ok 0 <= index( $o, "'#$option" ), 1, $option;
};
} @options
),
sub {
$p->parse_options( [ @options ] );
$o = join( " ", map "'$_'", $p->options_as_strings );
ok length $o;
},
(
map {
my $option = $_;
sub {
ok 0 <= index( $o, "'$option'" ), 1, $option;
};
} @options
),
sub {
$o = $p->options_documentation;
ok $o;
},
(
map {
my $option = $_;
$option =~ s/^--?//;
$option =~ s/=.*//;
sub {
ok defined $o->{$option}, 1, "$option documented";
};
} @options
),
) ;
plan tests => scalar( @tests ) ;
$_->() for @tests ;
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #5 | 4147 | Barrie Slaymaker | - t/03*.t adapted to new help and config file docs API | ||
| #4 | 3921 | Barrie Slaymaker |
- VCP::Source::vss uses "0." and "1." prefixes on all rev_ids to properly handle VSS's idea of deleted files. - VCP::Dest::vss now offers --dont-recover-deleted-files to allow VSS-like sources to be trasnferred more completely |
||
| #3 | 3861 | Barrie Slaymaker | - test suite adapted to --mkss-ssdir option spelling | ||
| #2 | 3489 | Barrie Slaymaker | - Document options emitted to .vcp files. | ||
| #1 | 3460 | Barrie Slaymaker |
- Revamp Plugin/Source/Dest hierarchy to allow for reguritating options in to .vcp files |