ia64/xen-unstable

annotate tools/xm-test/configure.ac @ 19615:13a4f4e6d0a3

x86 hvm: Correctly emulate task switches into vm86 mode.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 19 02:12:04 2009 +0100 (2009-05-19)
parents 33dcf04d7715
children
rev   line source
emellor@7647 1 # xm-test configure.ac input script
emellor@7647 2
emellor@7647 3 # Basic header information
ewan@12302 4 AC_INIT([xm-test], [1.1.0])
emellor@7647 5 AM_INIT_AUTOMAKE([1.7 foreign])
emellor@7647 6
ewan@11957 7 MK=''; AC_SUBST(MK)
ewan@11957 8
emellor@7647 9 # Check for dependencies
emellor@7647 10 AC_PROG_CC
emellor@7647 11 #AC_PROG_INSTALL
stekloff@8649 12 AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH])
emellor@7647 13
ewan@13808 14 XEN_PYTHON_PATH=$(/usr/sbin/xen-python-path)
ewan@13808 15
ewan@12306 16 # Right now, we can assume that the lib/ directory
ewan@12306 17 # is two levels above the tests
emellor@7647 18 TESTLIB=../../lib
ewan@13808 19 TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB:$XEN_PYTHON_PATH"
emellor@7647 20
kaf24@8708 21 AC_ARG_ENABLE(hvm-support,
kaf24@8708 22 [[ --enable-hvm-support enable hardware virtual machine assist]],
emellor@7647 23 [
kaf24@8708 24 ENABLE_HVM=True
emellor@7647 25 ],[
kaf24@8708 26 ENABLE_HVM=False
emellor@7647 27 ])
emellor@7647 28
kaf24@8708 29 if test "x$ENABLE_HVM" = "xTrue"; then
stekloff@8649 30 if test "$LILO" = "no"; then
stekloff@8649 31 AC_MSG_ERROR([lilo not found
kaf24@8708 32 lilo version 22.7 or greater must be installed for testing with hvm enabled.])
stekloff@8649 33 else
stekloff@8649 34 pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'`
stekloff@8649 35 if test "$pass" != "true"; then
stekloff@8649 36 AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.)
stekloff@8649 37 fi
stekloff@8649 38 fi
stekloff@8649 39 fi
stekloff@8649 40
kaf24@8708 41 AM_CONDITIONAL(HVM, test x$ENABLE_HVM = xTrue)
kaf24@8708 42 AC_SUBST(ENABLE_HVM)
emellor@7647 43
kfraser@11876 44 AC_ARG_ENABLE(full-labeling,
kfraser@11876 45 [[ --enable-full-labeling allows the test suite to label all resources]],
kfraser@11876 46 [
kfraser@11876 47 ENABLE_LABELING=True
kfraser@11876 48 ],[
kfraser@11876 49 ENABLE_LABELING=False
kfraser@11876 50 ])
kfraser@11876 51
kfraser@11876 52 if test "x$ENABLE_LABELING" = "xTrue"; then
kfraser@11876 53 echo "ACM_LABEL_RESOURCES = True" > lib/XmTestLib/acm_config.py
kfraser@11876 54 else
kfraser@11876 55 rm -f lib/XmTestLib/acm_config.py*
kfraser@11876 56 fi
kfraser@11876 57
stekloff@9937 58 # Network needs to know ips to use: dhcp or a range of IPs in the form
keir@16739 59 # of: 192.0.2.1-192.0.2.100
stekloff@9937 60 # If not dhcp, a netmask and network address must be supplied. Defaults to
keir@16739 61 # range allocated in www.ucam.org/cam-grin.
keir@16739 62 NET_IP_RANGE="172.30.206.1-172.30.206.254"
stekloff@9937 63 AC_ARG_WITH(net-ip-range,
keir@16739 64 [ --with-net-ip-range=ip-range Set a range of ip addresses to use for xm-test guest domain networks. Can specify dhcp or a range of IPs: 192.0.2.1-192.0.2.100 [[default="172.30.206.1-172.30.206.254"]]],
stekloff@9937 65 [ NET_IP_RANGE="$withval" ])
stekloff@9937 66
stekloff@9937 67 iprange=`echo $NET_IP_RANGE | perl -e 'while(<>) { print if /\d+\.\d+\.\d+\.\d+-\d+\.\d+\.\d+\.\d+/ }'`
stekloff@9937 68
keir@16739 69 NETWORK_ADDRESS="172.30.206.0"
stekloff@9937 70 AC_ARG_WITH(network-address,
keir@16739 71 [ --with-network-address=ip Set network address to use with ip range [[default="172.30.206.0"]]],
stekloff@9937 72 [ NETWORK_ADDRESS="$withval" ])
stekloff@9937 73
keir@16739 74 NETMASK="255.255.255.0"
stekloff@9937 75 AC_ARG_WITH(netmask,
keir@16739 76 [ --with-netmask=mask Set netmask to use with ip range [[default="255.255.255.0"]]],
stekloff@9937 77 [ NETMASK="$withval" ])
stekloff@9937 78
stekloff@9937 79 if test "x$NET_IP_RANGE" != "xdhcp" && test -z "$iprange"
stekloff@9937 80 then
stekloff@9937 81 AC_MSG_ERROR(Invalid net-ip-range.)
stekloff@9937 82 fi
stekloff@9937 83
stekloff@9937 84 AC_SUBST(NET_IP_RANGE)
stekloff@9937 85 AC_SUBST(NETWORK_ADDRESS)
stekloff@9937 86 AC_SUBST(NETMASK)
stekloff@9937 87
keir@16032 88 DOM0_INTF="eth0"
james@15746 89 AC_ARG_WITH(dom0-intf,
keir@16032 90 [ --with-dom0-intf=intf Set dom0 interface name [[default="eth0"]]],
james@15746 91 [ DOM0_INTF="$withval" ])
james@15746 92
james@15746 93 AC_SUBST(DOM0_INTF)
james@15746 94
kaf24@8708 95 AC_ARG_WITH(hvm-kernel,
kaf24@8708 96 [[ --with-hvm-kernel=kernel Use this kernel for hvm disk.img testing]],
kaf24@8708 97 HVMKERNEL=$withval,
kaf24@8708 98 HVMKERNEL="no")
stekloff@8667 99
kaf24@8708 100 dnl substitute @HVMKERNEL@ in all Makefiles
kaf24@8708 101 AC_SUBST(HVMKERNEL)
stekloff@8667 102
kaf24@8699 103 AC_ARG_WITH(driver-dir,
kaf24@8699 104 [[ --with-driver-dir=drvdir Look in this directory for the pcnet32 driver for the vmx disk.img. drvdir can equal key word "builtin" if driver is built into the kernel]],
kaf24@8699 105 DRVDIR=$withval,
kaf24@8699 106 DRVDIR="no")
kaf24@8699 107
kaf24@8699 108 dnl substitute @DRVDIR@ in all Makefiles
kaf24@8699 109 AC_SUBST(DRVDIR)
kaf24@8699 110
kaf24@10758 111 NETDRV="8139too.ko"
kaf24@10758 112 AC_ARG_WITH(network-drv,
kaf24@10758 113 [ --with-network-drv=driver Set network driver to use [[default="8139too.ko"]]],
kaf24@10758 114 [ NETDRV="$withval" ])
kaf24@10758 115
kaf24@10758 116 dnl substitute @DRVDIR@ in all Makefiles
kaf24@10758 117 AC_SUBST(NETDRV)
kaf24@10758 118
emellor@7647 119 AC_SUBST(TENV)
emellor@7647 120 AC_SUBST(PACKAGE_VERSION)
emellor@7647 121
emellor@7647 122 AC_PROG_YACC
emellor@7647 123 AC_PROG_LEX
emellor@7647 124
emellor@7647 125 # basic build files
emellor@7647 126 AC_CONFIG_FILES([
emellor@7647 127 Makefile
emellor@7647 128 ramdisk/Makefile
emellor@7647 129 tests/Makefile
dan@8054 130 tests/_sanity/Makefile
emellor@7647 131 tests/block-list/Makefile
emellor@7647 132 tests/block-create/Makefile
emellor@7647 133 tests/block-destroy/Makefile
harry@10114 134 tests/block-integrity/Makefile
emellor@7647 135 tests/console/Makefile
emellor@7647 136 tests/create/Makefile
emellor@7647 137 tests/destroy/Makefile
emellor@7647 138 tests/dmesg/Makefile
emellor@7647 139 tests/domid/Makefile
emellor@7647 140 tests/domname/Makefile
emellor@7647 141 tests/help/Makefile
emellor@7647 142 tests/info/Makefile
emellor@7647 143 tests/list/Makefile
emellor@7647 144 tests/memmax/Makefile
emellor@7647 145 tests/memset/Makefile
emellor@7647 146 tests/migrate/Makefile
root@7997 147 tests/network-attach/Makefile
emellor@8297 148 tests/network/Makefile
emellor@7647 149 tests/pause/Makefile
emellor@7647 150 tests/reboot/Makefile
emellor@7647 151 tests/restore/Makefile
emellor@7647 152 tests/save/Makefile
ack@10338 153 tests/sched-credit/Makefile
kfraser@11876 154 tests/security-acm/Makefile
emellor@7647 155 tests/sedf/Makefile
emellor@7647 156 tests/shutdown/Makefile
emellor@7647 157 tests/sysrq/Makefile
emellor@7647 158 tests/unpause/Makefile
emellor@7647 159 tests/vcpu-pin/Makefile
emellor@7647 160 tests/vcpu-disable/Makefile
emellor@9045 161 tests/vtpm/Makefile
ewan@13392 162 tests/xapi/Makefile
emellor@7647 163 tests/enforce_dom0_cpus/Makefile
emellor@7647 164 lib/XmTestReport/xmtest.py
emellor@7647 165 lib/XmTestLib/config.py
emellor@7647 166 ])
emellor@7647 167
dan@7891 168 AC_OUTPUT
emellor@7647 169
dan@7891 170 chmod a+x lib/XmTestReport/xmtest.py