run-test
changeset 266 7cc208cbf2be
parent 265 6629144cf111
child 267 4f24892b33fe
equal deleted inserted replaced
265:6629144cf111 266:7cc208cbf2be
    10 BACKING=$TOPDIR/build/env/backing
    10 BACKING=$TOPDIR/build/env/backing
    11 MOUNT=$TOPDIR/build/env/mount
    11 MOUNT=$TOPDIR/build/env/mount
    12 mkdir -p $BACKING $MOUNT
    12 mkdir -p $BACKING $MOUNT
    13 
    13 
    14 touch $BACKING/please-trash-this-system
    14 touch $BACKING/please-trash-this-system
    15 cp -av action $BACKING
       
    16 mkdir -p $BACKING/etc
    15 mkdir -p $BACKING/etc
       
    16 echo "pristine" > $BACKING/etc/debian_chroot
    17 cp -v policy-rc.d $BACKING/etc/policy-rc.d
    17 cp -v policy-rc.d $BACKING/etc/policy-rc.d
    18 
    18 
    19 unionfs-fuse -o cow -o allow_root,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT
    19 mkdir -p $BACKING/var/cache/apt/archives
       
    20 cp -v build/aptcache/* $BACKING/var/cache/apt/archives
       
    21 
       
    22 cp -av action $BACKING
       
    23 #hg -R ../mercurial-server archive -r default $BACKING/action/mercurial-server
       
    24 ( cd ../mercurial-server && \
       
    25     hg st -mac0n | cpio -p -0 -d $BACKING/action/mercurial-server )
       
    26 
       
    27 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT
    20 
    28 
    21 #mount --bind /dev "$MOUNT/dev"
    29 #mount --bind /dev "$MOUNT/dev"
    22 #mount --bind /dev/pts "$MOUNT/dev/pts"
    30 #mount --bind /dev/pts "$MOUNT/dev/pts"
    23 mount -t proc proc $MOUNT/proc
    31 mount -t proc proc $MOUNT/proc
    24 
    32 
    25 chroot $MOUNT ./action/go
    33 chroot $MOUNT ./action/go
    26 cd $TOPDIR
       
    27 
    34 
    28 umount $MOUNT/proc
    35 umount $MOUNT/proc
    29 umount $MOUNT
    36 umount $MOUNT
    30 
    37 
    31 cat $BACKING/action/results
    38 #cat $BACKING/action/results
    32 
    39 
    33 rm -rf build/env
    40 rm -rf build/env
    34 
    41