16-streams.t #1

  • //
  • p4perl/
  • r16.1/
  • t/
  • 16-streams.t
  • View
  • Commits
  • Open Download .zip Download (811 B)
use Test::More tests => 7;
BEGIN { use_ok( 'P4' ); }						## test 1

# Load test utils
unshift( @INC, "." );
unshift( @INC, "t" );
require_ok( "p4test" );							## test 2

my $test = new P4::Test;
my $p4 = $test->InitClient();
$p4->SetStreams( 1 );
ok( $p4->IsStreams() );							## test 3
$p4->Connect();
ok( $p4->IsConnected() );						## test 4

my $spec = $p4->FetchDepot("streams");
$spec->{'Type'} = "stream";
$p4->SaveDepot($spec);

my @depots = $p4->RunDepots();
ok( scalar( @depots ) == 2 );					## test 5

my $stream = $p4->FetchStream("//streams/MAIN");
$stream->{'Type'} = "mainline";
$p4->SaveDepot($stream);

## look for 'extraTag' field names like 'firmerThanParent'
ok( $stream->{'firmerThanParent'} );			## test 6

$p4->SetStreams( 0 );
ok( !$p4->IsStreams() );						## test 7

$p4->Disconnect();
# Change User Description Committed
#1 21613 C. Thomas Tyler Populate -r -o -S //p4perl/r16.1.
//p4perl/main/t/16-streams.t
#1 21593 C. Thomas Tyler Populate -o //guest/perforce_software/p4perl/main/...
//p4perl/main/....
//guest/perforce_software/p4perl/main/t/16-streams.t
#2 19372 Paul Allen Update with P16.1 changes.
#1 15920 Matt Attaway Move p4perl files into the main directory
//guest/perforce_software/p4perl/t/16-streams.t
#1 8486 Paul Allen Initial population of P4PERL

from:
   //depot/main/p4-perl/...@565514
   //depot/main/p4-doc/user/p4perlnotes.txt@565514