Changeset 783


Ignore:
Timestamp:
05/22/09 16:52:59 (4 years ago)
Author:
bruno
Message:

r3090@localhost: bruno | 2009-05-22 15:15:18 +0200

  • Fix script handling in test case by generating the right tdir
  • Create a test2pkg input commnd. So this version is mandatory in VEs/VMs for test purposes. Will be in 0.9.7
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r782 r783  
    227227 
    228228Snapshot a virtual environment for pb usage 
     229 
     230=item B<test2pkg> 
     231 
     232Test a package locally 
    229233 
    230234=item B<test2vm> 
     
    471475} elsif ($action =~ /^snapvm$/) { 
    472476    pb_snap2v("vm"); 
     477} elsif ($action =~ /^test2pkg$/) { 
     478    pb_test2pkg(); 
    473479} elsif ($action =~ /^test2ve$/) { 
    474480    pb_build2v("ve","test"); 
     
    11851191    my $tdir; 
    11861192    my $bdir; 
    1187     if (($cmt eq "Sources") || ($cmt =~ /V[EM]Script/) || ($cmt =~ /V[EM]test/)) { 
     1193    if (($cmt eq "Sources") || ($cmt =~ /V[EM]Script/)) { 
    11881194        $tdir = $sshdir->{$ENV{'PBPROJ'}}."/src"; 
    11891195        if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)) { 
     
    11911197            $tdir = $sshdir->{$ENV{'PBPROJ'}}."/test/src"; 
    11921198        } 
    1193     } elsif ($cmt =~ /V[EM]build/) { 
     1199    } elsif (($cmt =~ /V[EM]build/)  || ($cmt =~ /V[EM]test/)) { 
    11941200        $tdir = $sshdir->{$ENV{'PBPROJ'}}."/$ENV{'PBPROJ'}/delivery"; 
    11951201        $bdir = $sshdir->{$ENV{'PBPROJ'}}."/$ENV{'PBPROJ'}/build"; 
     
    21082114# For VE we need a good null dev 
    21092115pb_system("rm -f /dev/null; mknod /dev/null c 1 3; chmod 777 /dev/null"); 
    2110  
    21112116 
    21122117# For VE we need some additional packages that are not there yet 
Note: See TracChangeset for help on using the changeset viewer.