Changeset 1334


Ignore:
Timestamp:
Apr 24, 2007, 11:03:23 AM (12 years ago)
Author:
bruno
Message:
  • Add a test env (local for laptop + QEMU based)
  • creates qemu-env for reuse of code
Location:
branches/stable/tools
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/action2qemu

    r1327 r1334  
    1919. $TOOLHOME/common-env
    2020. $TOOLHOME/distro-env
     21. $TOOLHOME/qemu-env
    2122
    2223if [ _"$1" != _"" ]; then
     
    4445            exit -1
    4546    fi
    46     if [ _"$sp" = _"" ]; then
    47         export sp=2222
    48     fi
    4947    ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu
    5048    if [ $? -ne 0 ]; then
  • branches/stable/tools/build2qemu

    r1042 r1334  
    2424. $TOOLHOME/common-env
    2525. $TOOLHOME/distro-env
     26. $TOOLHOME/qemu-env
    2627
    2728# We need to get $VER and $TAG
     
    8283            exit -1
    8384    fi
    84     if [ _"$sp" = _"" ]; then
    85         export sp=2222
    86     fi
    8785    ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu
    8886    if [ $? -ne 0 ]; then
  • branches/stable/tools/mkqemu

    r1042 r1334  
    55# Call virtual machine with qemu
    66#
     7(
     8dname=`dirname $0`
     9prem=`echo $dname |cut -c1`
     10if [ _${prem} = _"/" ]; then
     11        export TOOLHOME=$dname
     12else
     13        export TOOLHOME=${PWD}/$dname
     14fi
     15
     16. $TOOLHOME/common-env
     17. $TOOLHOME/distro-env
     18. $TOOLHOME/qemu-env
    719
    820if [ _"$1" = _"" ]; then
     
    1325fi
    1426
    15 ipvm=10.0.2.15
    16 
    17 if [ _"$sp" = _"" ]; then
    18     sp=2223
    19 fi
    20 
    21 ARCH=`/bin/arch`
    22 if [ $ARCH = "x86_64" ]; then
    23     qemucmd32=/usr//bin/qemu-system-i386
    24     qemucmd64=/usr//bin/qemu
    25 else
    26     qemucmd32=/usr//bin/qemu
    27     qemucmd64=/usr//bin/qemu-system-x86_64
    28 fi
    29 
    30 echo $m | grep -q '_64$'
    31 if [ $? -ne 0 ]; then
    32      qemucmd=$qemucmd32
    33 else
    34      qemucmd=$qemucmd64
    35 fi
    3627$qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
     28) 2>&1 | tee /tmp/mkqemu.log
  • branches/stable/tools/test2qemu

    r1306 r1334  
    1919. $TOOLHOME/common-env
    2020. $TOOLHOME/distro-env
     21. $TOOLHOME/qemu-env
    2122
    2223if [ _"$1" = _"" ]; then
     
    3536            rm -rf $MONDOTMP
    3637            exit -1
    37     fi
    38     if [ _"$sp" = _"" ]; then
    39         export sp=2222
    4038    fi
    4139    ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/pxe-$m.qemu
Note: See TracChangeset for help on using the changeset viewer.