run-test
changeset 267 4f24892b33fe
parent 266 7cc208cbf2be
child 269 a09f1bc9a6cf
equal deleted inserted replaced
266:7cc208cbf2be 267:4f24892b33fe
     2 
     2 
     3 # Must be root to run this
     3 # Must be root to run this
     4 
     4 
     5 set -e
     5 set -e
     6 
     6 
     7 PRISTINE=/var/local/cache/pristine/sid
     7 DEBVERSION=sid
       
     8 
       
     9 PRISTINE=/var/local/cache/pristine/$DEBVERSION
     8 
    10 
     9 TOPDIR=`pwd`
    11 TOPDIR=`pwd`
    10 BACKING=$TOPDIR/build/env/backing
    12 BACKING=$TOPDIR/build/env/backing
    11 MOUNT=$TOPDIR/build/env/mount
    13 MOUNT=$TOPDIR/build/env/mount
    12 mkdir -p $BACKING $MOUNT
    14 mkdir -p $TOPDIR/build/env
       
    15 mkdir $BACKING $MOUNT
    13 
    16 
    14 touch $BACKING/please-trash-this-system
    17 touch $BACKING/please-trash-this-system
    15 mkdir -p $BACKING/etc
    18 mkdir -p $BACKING/etc
    16 echo "pristine" > $BACKING/etc/debian_chroot
    19 echo "pristine" > $BACKING/etc/debian_chroot
    17 cp -v policy-rc.d $BACKING/etc/policy-rc.d
    20 cp -v policy-rc.d $BACKING/etc/policy-rc.d
    18 
    21 
    19 mkdir -p $BACKING/var/cache/apt/archives
    22 mkdir -p $BACKING/var/cache/apt/archives
    20 cp -v build/aptcache/* $BACKING/var/cache/apt/archives
    23 cp -v build/aptcache/$DEBVERSION/* $BACKING/var/cache/apt/archives || true
    21 
    24 
    22 cp -av action $BACKING
    25 cp -av action $BACKING
    23 #hg -R ../mercurial-server archive -r default $BACKING/action/mercurial-server
    26 #hg -R ../mercurial-server archive -r default $BACKING/action/mercurial-server
    24 ( cd ../mercurial-server && \
    27 #( cd ../mercurial-server && \
    25     hg st -mac0n | cpio -p -0 -d $BACKING/action/mercurial-server )
    28 #    hg st -mac0n | cpio -p -0 -d $BACKING/action/mercurial-server )
       
    29 
       
    30 cp ../mercurial-server/build/debian/mercurial-server_1.0-1_all.deb $BACKING/action
    26 
    31 
    27 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT
    32 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT
    28 
    33 
    29 #mount --bind /dev "$MOUNT/dev"
    34 #mount --bind /dev "$MOUNT/dev"
    30 #mount --bind /dev/pts "$MOUNT/dev/pts"
    35 #mount --bind /dev/pts "$MOUNT/dev/pts"