ia64/xen-unstable

view tools/xm-test/configure.ac @ 9961:1d2a0e2ef8f7

The buildroot xm-test grabs is no longer present, this patch fixes it.
Made it a minor release bump for xm-test so old ramdisk will work. The
ramdisk is functionally the same.

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