ia64/xen-unstable

view tools/xm-test/configure.ac @ 12306:edd592c823a5

fix xm-test configure.ac to not define RD_PATH which prevented env override

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Nov 02 23:05:24 2006 +0000 (2006-11-02)
parents 9ceb1a07a85c
children 568ba07641c6
line source
1 # xm-test configure.ac input script
3 # Basic header information
4 AC_INIT([xm-test], [1.1.0])
5 AM_INIT_AUTOMAKE([1.7 foreign])
7 MK=''; AC_SUBST(MK)
9 # Check for dependencies
10 AC_PROG_CC
11 #AC_PROG_INSTALL
12 AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH])
14 # Right now, we can assume that the lib/ directory
15 # is two levels above the tests
16 TESTLIB=../../lib
17 TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB"
19 AC_ARG_ENABLE(hvm-support,
20 [[ --enable-hvm-support enable hardware virtual machine assist]],
21 [
22 ENABLE_HVM=True
23 ],[
24 ENABLE_HVM=False
25 ])
27 if test "x$ENABLE_HVM" = "xTrue"; then
28 if test "$LILO" = "no"; then
29 AC_MSG_ERROR([lilo not found
30 lilo version 22.7 or greater must be installed for testing with hvm enabled.])
31 else
32 pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'`
33 if test "$pass" != "true"; then
34 AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.)
35 fi
36 fi
37 fi
39 AM_CONDITIONAL(HVM, test x$ENABLE_HVM = xTrue)
40 AC_SUBST(ENABLE_HVM)
42 AC_ARG_ENABLE(full-labeling,
43 [[ --enable-full-labeling allows the test suite to label all resources]],
44 [
45 ENABLE_LABELING=True
46 ],[
47 ENABLE_LABELING=False
48 ])
50 if test "x$ENABLE_LABELING" = "xTrue"; then
51 echo "ACM_LABEL_RESOURCES = True" > lib/XmTestLib/acm_config.py
52 else
53 rm -f lib/XmTestLib/acm_config.py*
54 fi
56 # Network needs to know ips to use: dhcp or a range of IPs in the form
57 # of: 192.168.1.1-192.168.1.100
58 # If not dhcp, a netmask and network address must be supplied. Defaults to
59 # zeroconf range.
60 NET_IP_RANGE="169.254.0.1-169.254.255.255"
61 AC_ARG_WITH(net-ip-range,
62 [ --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"]]],
63 [ NET_IP_RANGE="$withval" ])
65 iprange=`echo $NET_IP_RANGE | perl -e 'while(<>) { print if /\d+\.\d+\.\d+\.\d+-\d+\.\d+\.\d+\.\d+/ }'`
67 NETWORK_ADDRESS="169.254.0.0"
68 AC_ARG_WITH(network-address,
69 [ --with-network-address=ip Set network address to use with ip range [[default="169.254.0.0"]]],
70 [ NETWORK_ADDRESS="$withval" ])
72 NETMASK="255.255.0.0"
73 AC_ARG_WITH(netmask,
74 [ --with-netmask=mask Set netmask to use with ip range [[default="255.255.0.0"]]],
75 [ NETMASK="$withval" ])
77 if test "x$NET_IP_RANGE" != "xdhcp" && test -z "$iprange"
78 then
79 AC_MSG_ERROR(Invalid net-ip-range.)
80 fi
82 AC_SUBST(NET_IP_RANGE)
83 AC_SUBST(NETWORK_ADDRESS)
84 AC_SUBST(NETMASK)
86 AC_ARG_WITH(hvm-kernel,
87 [[ --with-hvm-kernel=kernel Use this kernel for hvm disk.img testing]],
88 HVMKERNEL=$withval,
89 HVMKERNEL="no")
91 dnl substitute @HVMKERNEL@ in all Makefiles
92 AC_SUBST(HVMKERNEL)
94 AC_ARG_WITH(driver-dir,
95 [[ --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]],
96 DRVDIR=$withval,
97 DRVDIR="no")
99 dnl substitute @DRVDIR@ in all Makefiles
100 AC_SUBST(DRVDIR)
102 NETDRV="8139too.ko"
103 AC_ARG_WITH(network-drv,
104 [ --with-network-drv=driver Set network driver to use [[default="8139too.ko"]]],
105 [ NETDRV="$withval" ])
107 dnl substitute @DRVDIR@ in all Makefiles
108 AC_SUBST(NETDRV)
110 AC_SUBST(TENV)
111 AC_SUBST(PACKAGE_VERSION)
113 AC_PROG_YACC
114 AC_PROG_LEX
116 # basic build files
117 AC_CONFIG_FILES([
118 Makefile
119 ramdisk/Makefile
120 tests/Makefile
121 tests/_sanity/Makefile
122 tests/block-list/Makefile
123 tests/block-create/Makefile
124 tests/block-destroy/Makefile
125 tests/block-integrity/Makefile
126 tests/console/Makefile
127 tests/create/Makefile
128 tests/destroy/Makefile
129 tests/dmesg/Makefile
130 tests/domid/Makefile
131 tests/domname/Makefile
132 tests/help/Makefile
133 tests/info/Makefile
134 tests/list/Makefile
135 tests/memmax/Makefile
136 tests/memset/Makefile
137 tests/migrate/Makefile
138 tests/network-attach/Makefile
139 tests/network/Makefile
140 tests/pause/Makefile
141 tests/reboot/Makefile
142 tests/restore/Makefile
143 tests/save/Makefile
144 tests/sched-credit/Makefile
145 tests/security-acm/Makefile
146 tests/sedf/Makefile
147 tests/shutdown/Makefile
148 tests/sysrq/Makefile
149 tests/unpause/Makefile
150 tests/vcpu-pin/Makefile
151 tests/vcpu-disable/Makefile
152 tests/vtpm/Makefile
153 tests/enforce_dom0_cpus/Makefile
154 lib/XmTestReport/xmtest.py
155 lib/XmTestLib/config.py
156 ])
158 AC_OUTPUT
160 chmod a+x lib/XmTestReport/xmtest.py