use Test::More tests => 8; 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 @depots = $p4->RunDepots(); ok( scalar( @depots ) == 1 ); ## test 8 $p4->Disconnect();
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16287 | emilaizer | "Forking branch MAIN of p4perl to emilaizer-p4perl." | ||
//guest/perforce_software/p4perl/main/t/16-streams.t | |||||
#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 |