Last change
on this file since 3753 was 1306, checked in by Bruno Cornec, 17 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 | (
|
---|
10 | dname=`dirname $0`
|
---|
11 | prem=`echo $dname |cut -c1`
|
---|
12 | if [ _${prem} = _"/" ]; then
|
---|
13 | export TOOLHOME=$dname
|
---|
14 | else
|
---|
15 | export TOOLHOME=${PWD}/$dname
|
---|
16 | fi
|
---|
17 |
|
---|
18 | . $TOOLHOME/common-env
|
---|
19 | . $TOOLHOME/distro-env
|
---|
20 |
|
---|
21 | cat > $MONDOTMP/test-mondo << EOF
|
---|
22 | #!/bin/bash
|
---|
23 |
|
---|
24 | h=test-mondo
|
---|
25 | mkdir -p /users/svg
|
---|
26 | mount flecha.home.musique-ancienne.org:/users/svg /users/svg
|
---|
27 | mkdir -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
|
---|
29 | umount /users/svg
|
---|
30 | EOF
|
---|
31 | chmod 755 $MONDOTMP/test-mondo
|
---|
32 | sudo $MONDOTMP/test-mondo
|
---|
33 | rm -rf $MONDOTMP
|
---|
34 | ) 2>&1 | tee /tmp/pkg2test.log
|
---|
Note:
See
TracBrowser
for help on using the repository browser.