Last change
on this file since 1581 was 1334, checked in by Bruno Cornec, 18 years ago |
- Add a test env (local for laptop + QEMU based)
- creates qemu-env for reuse of code
|
-
Property svn:executable
set to
*
|
File size:
826 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # $Id$
|
---|
4 | #
|
---|
5 | # Test mondo locally
|
---|
6 | #
|
---|
7 |
|
---|
8 | (
|
---|
9 | dname=`dirname $0`
|
---|
10 | prem=`echo $dname |cut -c1`
|
---|
11 | if [ _${prem} = _"/" ]; then
|
---|
12 | export TOOLHOME=$dname
|
---|
13 | else
|
---|
14 | export TOOLHOME=${PWD}/$dname
|
---|
15 | fi
|
---|
16 |
|
---|
17 | . $TOOLHOME/common-env
|
---|
18 | . $TOOLHOME/distro-env
|
---|
19 |
|
---|
20 | h=test-mondo
|
---|
21 | #
|
---|
22 | # For the laptop
|
---|
23 | #
|
---|
24 | d=/home/bruno/demo-mondo
|
---|
25 |
|
---|
26 | cat > $TMPDIR/test-mondo << EOF
|
---|
27 | #!/bin/bash
|
---|
28 |
|
---|
29 | export LANG=C
|
---|
30 | export LANGUAGE=C
|
---|
31 | export LC_ALL=C
|
---|
32 | mkdir -p $d
|
---|
33 | mkdir -p $d/tmp-$h $d/scratch-$h $d/images
|
---|
34 | /usr/sbin/mondoarchive -g -O -i -G -F -N -O -E "/usr/share/doc /usr/share/games /usr/share/fonts /usr/share/icons /usr/share/locale /usr/share/texmf /usr/src /home /users /var/log" -d images -s 4300m -T $d/tmp-$h -S $d/scratch-$h -p $h-$m
|
---|
35 | EOF
|
---|
36 | chmod 755 $TMPDIR/test-mondo
|
---|
37 | export PATH=/sbin:/usr/sbin:$PATH ; sudo $TMPDIR/test-mondo
|
---|
38 |
|
---|
39 | ) 2>&1 | tee /tmp/backuplocal.log
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.