source: branches/stable/tools/pkg2test @ 1326

Last change on this file since 1326 was 1306, checked in by bruno, 12 years ago
  • build2pkg now install pkgs at the end
  • mkisof and cdrecord now should be part of each VM
  • pkg2test launches mondoarchive in a VM to create a test backup env
  • test2qemu tests the restore of the previous backup inside an empty VM
  • Property svn:executable set to *
File size: 809 bytes
Line 
1#!/bin/bash
2#
3# Test packages
4#
5# $Id$
6#
7
8
9(
10dname=`dirname $0`
11prem=`echo $dname |cut -c1`
12if [ _${prem} = _"/" ]; then
13        export TOOLHOME=$dname
14else
15    export TOOLHOME=${PWD}/$dname
16fi
17
18. $TOOLHOME/common-env
19. $TOOLHOME/distro-env
20
21cat > $MONDOTMP/test-mondo << EOF
22#!/bin/bash
23
24h=test-mondo
25mkdir -p /users/svg
26mount flecha.home.musique-ancienne.org:/users/svg /users/svg
27mkdir -p /users/svg/mondo/tmp-\$h /users/svg/mondo/scratch-\$h
28/usr/sbin/mondoarchive -n flecha.home.musique-ancienne.org:/users/svg -G -F -N -O -E "/usr/share/doc /usr/src /home /users /var/log" -d mondo/images -s 4300m -T /users/svg/mondo/tmp-\$h -S /users/svg/mondo/scratch-\$h -p \$h-\$ddir_\$dver
29umount /users/svg
30EOF
31chmod 755 $MONDOTMP/test-mondo
32sudo $MONDOTMP/test-mondo
33rm -rf $MONDOTMP
34) 2>&1 | tee /tmp/pkg2test.log
Note: See TracBrowser for help on using the repository browser.