source: trunk/packages/xen-3.1/xen-3.1/tools/xm-test/configure.ac @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

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