ia64/xen-unstable

annotate tools/xm-test/configure.ac @ 10114:9b11eeab4558

Add a read-verify block device test to xm-test.
author harry@localhost.localdomain
date Fri May 19 16:30:21 2006 +0100 (2006-05-19)
parents 1d2a0e2ef8f7
children f99ba86ad96b
rev   line source
emellor@7647 1 # xm-test configure.ac input script
emellor@7647 2
emellor@7647 3 # Basic header information
stekloff@9961 4 AC_INIT([xm-test], [0.7.1])
emellor@7647 5 AM_INIT_AUTOMAKE([1.7 foreign])
emellor@7647 6
emellor@7647 7 # Check for dependencies
emellor@7647 8 AC_PROG_CC
emellor@7647 9 #AC_PROG_INSTALL
stekloff@8649 10 AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH])
emellor@7647 11
emellor@7647 12 # Right now, we can assume that the lib/ and ramdisk/ directories
emellor@7647 13 # are two levels above the tests
emellor@7647 14 TESTLIB=../../lib
emellor@7647 15 RD_PATH=../../ramdisk
emellor@9956 16 TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB RD_PATH=$RD_PATH"
emellor@7647 17
kaf24@8708 18 AC_ARG_ENABLE(hvm-support,
kaf24@8708 19 [[ --enable-hvm-support enable hardware virtual machine assist]],
emellor@7647 20 [
kaf24@8708 21 ENABLE_HVM=True
emellor@7647 22 ],[
kaf24@8708 23 ENABLE_HVM=False
emellor@7647 24 ])
emellor@7647 25
kaf24@8708 26 if test "x$ENABLE_HVM" = "xTrue"; then
stekloff@8649 27 if test "$LILO" = "no"; then
stekloff@8649 28 AC_MSG_ERROR([lilo not found
kaf24@8708 29 lilo version 22.7 or greater must be installed for testing with hvm enabled.])
stekloff@8649 30 else
stekloff@8649 31 pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'`
stekloff@8649 32 if test "$pass" != "true"; then
stekloff@8649 33 AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.)
stekloff@8649 34 fi
stekloff@8649 35 fi
stekloff@8649 36 fi
stekloff@8649 37
kaf24@8708 38 AM_CONDITIONAL(HVM, test x$ENABLE_HVM = xTrue)
kaf24@8708 39 AC_SUBST(ENABLE_HVM)
emellor@7647 40
stekloff@9937 41 # Network needs to know ips to use: dhcp or a range of IPs in the form
stekloff@9937 42 # of: 192.168.1.1-192.168.1.100
stekloff@9937 43 # If not dhcp, a netmask and network address must be supplied. Defaults to
stekloff@9937 44 # zeroconf range.
stekloff@9937 45 NET_IP_RANGE="169.254.0.1-169.254.255.255"
stekloff@9937 46 AC_ARG_WITH(net-ip-range,
stekloff@9937 47 [ --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.168.1.1-192.168.1.100 [[default="169.254.0.1-169.254.255.255"]]],
stekloff@9937 48 [ NET_IP_RANGE="$withval" ])
stekloff@9937 49
stekloff@9937 50 iprange=`echo $NET_IP_RANGE | perl -e 'while(<>) { print if /\d+\.\d+\.\d+\.\d+-\d+\.\d+\.\d+\.\d+/ }'`
stekloff@9937 51
stekloff@9937 52 NETWORK_ADDRESS="169.254.0.0"
stekloff@9937 53 AC_ARG_WITH(network-address,
stekloff@9937 54 [ --with-network-address=ip Set network address to use with ip range [[default="169.254.0.0"]]],
stekloff@9937 55 [ NETWORK_ADDRESS="$withval" ])
stekloff@9937 56
stekloff@9937 57 NETMASK="255.255.0.0"
stekloff@9937 58 AC_ARG_WITH(netmask,
stekloff@9937 59 [ --with-netmask=mask Set netmask to use with ip range [[default="255.255.0.0"]]],
stekloff@9937 60 [ NETMASK="$withval" ])
stekloff@9937 61
stekloff@9937 62 if test "x$NET_IP_RANGE" != "xdhcp" && test -z "$iprange"
stekloff@9937 63 then
stekloff@9937 64 AC_MSG_ERROR(Invalid net-ip-range.)
stekloff@9937 65 fi
stekloff@9937 66
stekloff@9937 67 AC_SUBST(NET_IP_RANGE)
stekloff@9937 68 AC_SUBST(NETWORK_ADDRESS)
stekloff@9937 69 AC_SUBST(NETMASK)
stekloff@9937 70
kaf24@8708 71 AC_ARG_WITH(hvm-kernel,
kaf24@8708 72 [[ --with-hvm-kernel=kernel Use this kernel for hvm disk.img testing]],
kaf24@8708 73 HVMKERNEL=$withval,
kaf24@8708 74 HVMKERNEL="no")
stekloff@8667 75
kaf24@8708 76 dnl substitute @HVMKERNEL@ in all Makefiles
kaf24@8708 77 AC_SUBST(HVMKERNEL)
stekloff@8667 78
kaf24@8699 79 AC_ARG_WITH(driver-dir,
kaf24@8699 80 [[ --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 81 DRVDIR=$withval,
kaf24@8699 82 DRVDIR="no")
kaf24@8699 83
kaf24@8699 84 dnl substitute @DRVDIR@ in all Makefiles
kaf24@8699 85 AC_SUBST(DRVDIR)
kaf24@8699 86
emellor@7647 87 AC_SUBST(TENV)
emellor@7647 88 AC_SUBST(PACKAGE_VERSION)
emellor@7647 89
emellor@7647 90 AC_PROG_YACC
emellor@7647 91 AC_PROG_LEX
emellor@7647 92
emellor@7647 93 # basic build files
emellor@7647 94 AC_CONFIG_FILES([
emellor@7647 95 Makefile
emellor@7647 96 ramdisk/Makefile
emellor@7647 97 tests/Makefile
dan@8054 98 tests/_sanity/Makefile
emellor@7647 99 tests/block-list/Makefile
emellor@7647 100 tests/block-create/Makefile
emellor@7647 101 tests/block-destroy/Makefile
harry@10114 102 tests/block-integrity/Makefile
emellor@7647 103 tests/console/Makefile
emellor@7647 104 tests/create/Makefile
emellor@7647 105 tests/destroy/Makefile
emellor@7647 106 tests/dmesg/Makefile
emellor@7647 107 tests/domid/Makefile
emellor@7647 108 tests/domname/Makefile
emellor@7647 109 tests/help/Makefile
emellor@7647 110 tests/info/Makefile
emellor@7647 111 tests/list/Makefile
emellor@7647 112 tests/memmax/Makefile
emellor@7647 113 tests/memset/Makefile
emellor@7647 114 tests/migrate/Makefile
root@7997 115 tests/network-attach/Makefile
emellor@8297 116 tests/network/Makefile
emellor@7647 117 tests/pause/Makefile
emellor@7647 118 tests/reboot/Makefile
emellor@7647 119 tests/restore/Makefile
emellor@7647 120 tests/save/Makefile
emellor@7647 121 tests/sedf/Makefile
emellor@7647 122 tests/shutdown/Makefile
emellor@7647 123 tests/sysrq/Makefile
emellor@7647 124 tests/unpause/Makefile
emellor@7647 125 tests/vcpu-pin/Makefile
emellor@7647 126 tests/vcpu-disable/Makefile
emellor@9045 127 tests/vtpm/Makefile
emellor@7647 128 tests/enforce_dom0_cpus/Makefile
emellor@7647 129 lib/XmTestReport/xmtest.py
emellor@7647 130 lib/XmTestLib/config.py
emellor@7647 131 ])
emellor@7647 132
dan@7891 133 AC_OUTPUT
emellor@7647 134
dan@7891 135 chmod a+x lib/XmTestReport/xmtest.py