Changeset 1577 for devel/pb/t/pbtest


Ignore:
Timestamp:
May 23, 2012, 2:33:44 PM (7 years ago)
Author:
bruno
Message:

Adding pbcl for afio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/t/pbtest

    r1576 r1577  
    2323sudo grep -q pbtest /etc/sudoers
    2424if [ $? -ne 0 ]; then
    25     cat >> /tmp/sudoers << EOF
     25    cat > /tmp/sudoers << EOF
    2626pbtest localhost=NOPASSWD:/usr/sbin/chroot
    2727pbtest localhost=NOPASSWD:/bin/cp
     
    4040# SVN repo setup
    4141sudo su - pbtest -c "svnadmin create $PBTEST/svn"
    42 cat >> /tmp/authz << EOF
     42cat > /tmp/authz << EOF
    4343[/]
    4444pbtest = rw
     
    4646EOF
    4747sudo mv /tmp/authz ~pbtest/svn/conf/authz
    48 cat >> /tmp/passwd << EOF
     48cat > /tmp/passwd << EOF
    4949[users]
    5050pbtest = pbtest
     
    6767sudo su - pbtest -c "pbdistrocheck"
    6868sudo su - pbtest -c "pb clean"
     69sudo su - pbtest -c "pb -p afio getconf"
     70
    6971cat > /tmp/.pbrc << EOF
    7072# Projects
     
    108110sudo su - pbtest -c "ssh localhost touch ftp/README"
    109111
    110 # Create SVN conf files
     112# Create SVN conf files - doesn't work fully as it asks for a password - solved with PBVCSOPT
    111113sudo su - pbtest -c "svn info"
    112114cat > /tmp/servers << EOF
     
    119121sudo chown pbtest:pbtest ~pbtest/.subversion/servers
    120122
    121 sudo su - pbtest -c "svn import pb svn://localhost/pb -m 'Initial creation of pb repo' --username pbtest --password pbtest"
     123VCSOPT='--username pbtest --password pbtest'
     124
     125sudo su - pbtest -c "svn import pb svn://localhost/pb -m 'Initial creation of pb repo' $VCSOPT"
    122126sudo su - pbtest -c "cd pb ; svn co svn://localhost/pb ."
    123127sudo su - pbtest -c "cd pb ; touch README ; svn add README ; svn ci --username pbtest --password pbtest -m 'add readme' README"
    124 sudo su - pbtest -c "export PBVCSOPT='--username pbtest --password pbtest' ; pb -p afio newproj afio"
     128sudo su - pbtest -c "export PBVCSOPT=\'$VCSOPT\' ; pb -p afio -r 2.5 newproj afio"
     129
     130grep -vE '^defpkgdir|^projver|^projtag|^pburl|^pbrepo|^shh' ~pbtest/pb/afio/pbconf/afio.pb > /tmp/afio.pb
    125131cat >> /tmp/afio.pb << EOF
    126132defpkgdir afio = dummy
     
    135141sudo mv /tmp/afio.pb ~pbtest/pb/afio/pbconf/afio.pb
    136142sudo chown pbtest:pbtest ~pbtest/pb/afio/pbconf/afio.pb
    137 sudo su - pbtest -c "pb -p afio sbx2build"
    138 
     143
     144grep -vE 'PBSRC|PBDESC|PBSUMMARY|PBURL|PBLOG' ~pbtest/pb/afio/pbconf/pbfilter/all.pbf > /tmp/all.pbf
    139145cat >> /tmp/all.pbf << EOF
    140146filter PBSRC = src/%{name}-%{version}.tar.gz
     
    146152sudo mv /tmp/all.pbf ~pbtest/pb/afio/pbconf/pbfilter/all.pbf
    147153sudo chown pbtest:pbtest ~pbtest/pb/afio/pbconf/pbfilter/all.pbf
     154
     155grep -vE 'PBGRP|PBLIC' ~pbtest/pb/afio/pbconf/pbfilter/rpm.pbf > /tmp/rpm.pbf
    148156cat >> /tmp/rpm.pbf << EOF
    149157filter PBGRP = Applications/Archiving
     
    152160sudo mv /tmp/rpm.pbf ~pbtest/pb/afio/pbconf/pbfilter/rpm.pbf
    153161sudo chown pbtest:pbtest ~pbtest/pb/afio/pbconf/pbfilter/rpm.pbf
     162
     163# First build
    154164sudo su - pbtest -c "pb -p afio sbx2build"
    155165
     
    166176sudo su - pbtest -c "pb -p pb pkg2ssh"
    167177
    168 cat >> /tmp/pbcl << EOF
     178cat > /tmp/pbcl << EOF
    169179# $Id$
    170180
     
    177187chown pbtest:pbtest ~pbtest/pb/afio/pbconf/afio/pbcl
    178188svn add ~pbtest/pb/afio/pbconf/afio/pbcl
    179 svn ci -m 'Adding pbcl for afio'
     189svn ci -m 'Adding pbcl for afio' $VCSOPT
    180190
    181191sudo perl -pi -e 's|,\s*PBDEP||' ~pbtest/pb/afio/pbconf/afio/deb/control
     
    207217#dpkg -x ~ftp/pub/afio/test/debian/5.0/afio_2.5-0.20091204131057_i386.deb /tmp/x ;  ls -lR /tmp/x
    208218
    209 sudo su - pbtest -c "pb -p afio getconf"
    210 
    211219for d in $TESTVEDIST; do
    212     sudo su - pbtest -c "pb -p afio -m $d newve"
     220    sudo su - pbtest -c "pb -p pb -m $d newve"
    213221    sudo su - pbtest -c "pb -p pb -m $d sbx2setupve"
    214     sudo su - pbtest -c "pb -p afio -m $d snapve"
     222    sudo su - pbtest -c "pb -p pb -m $d snapve"
    215223    sudo su - pbtest -c "pb -p afio -m $d sbx2ve"
    216224    # Cleaning VE to use the snapshot
     
    220228done
    221229
    222 # test also with MOndoRescue
    223 pb -p mondorescue -r branches/3.0 cms2pkg
    224230
    225231#qemu-kvm \
     
    237243sudo su - pbtest -c "pb -p afio clean"
    238244
     245# test also with MOndoRescue
     246pb -p mondorescue -r branches/3.0 cms2pkg
     247
    239248# Cleanup
    240249#sudo userdel pbtest
Note: See TracChangeset for help on using the changeset viewer.