1 | # xm-test configure.ac input script |
---|
2 | |
---|
3 | # Basic header information |
---|
4 | AC_INIT([xm-test], [1.1.0]) |
---|
5 | AM_INIT_AUTOMAKE([1.7 foreign]) |
---|
6 | |
---|
7 | MK=''; AC_SUBST(MK) |
---|
8 | |
---|
9 | # Check for dependencies |
---|
10 | AC_PROG_CC |
---|
11 | #AC_PROG_INSTALL |
---|
12 | AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH]) |
---|
13 | |
---|
14 | XEN_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 |
---|
18 | TESTLIB=../../lib |
---|
19 | TENV="PYTHONPATH=$PYTHONPATH:$TESTLIB:$XEN_PYTHON_PATH" |
---|
20 | |
---|
21 | AC_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 | |
---|
29 | if test "x$ENABLE_HVM" = "xTrue"; then |
---|
30 | if test "$LILO" = "no"; then |
---|
31 | AC_MSG_ERROR([lilo not found |
---|
32 | lilo 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 |
---|
39 | fi |
---|
40 | |
---|
41 | AM_CONDITIONAL(HVM, test x$ENABLE_HVM = xTrue) |
---|
42 | AC_SUBST(ENABLE_HVM) |
---|
43 | |
---|
44 | AC_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 | |
---|
52 | if test "x$ENABLE_LABELING" = "xTrue"; then |
---|
53 | echo "ACM_LABEL_RESOURCES = True" > lib/XmTestLib/acm_config.py |
---|
54 | else |
---|
55 | rm -f lib/XmTestLib/acm_config.py* |
---|
56 | fi |
---|
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. |
---|
62 | NET_IP_RANGE="169.254.0.1-169.254.255.255" |
---|
63 | AC_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 | |
---|
67 | iprange=`echo $NET_IP_RANGE | perl -e 'while(<>) { print if /\d+\.\d+\.\d+\.\d+-\d+\.\d+\.\d+\.\d+/ }'` |
---|
68 | |
---|
69 | NETWORK_ADDRESS="169.254.0.0" |
---|
70 | AC_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 | |
---|
74 | NETMASK="255.255.0.0" |
---|
75 | AC_ARG_WITH(netmask, |
---|
76 | [ --with-netmask=mask Set netmask to use with ip range [[default="255.255.0.0"]]], |
---|
77 | [ NETMASK="$withval" ]) |
---|
78 | |
---|
79 | if test "x$NET_IP_RANGE" != "xdhcp" && test -z "$iprange" |
---|
80 | then |
---|
81 | AC_MSG_ERROR(Invalid net-ip-range.) |
---|
82 | fi |
---|
83 | |
---|
84 | AC_SUBST(NET_IP_RANGE) |
---|
85 | AC_SUBST(NETWORK_ADDRESS) |
---|
86 | AC_SUBST(NETMASK) |
---|
87 | |
---|
88 | AC_ARG_WITH(hvm-kernel, |
---|
89 | [[ --with-hvm-kernel=kernel Use this kernel for hvm disk.img testing]], |
---|
90 | HVMKERNEL=$withval, |
---|
91 | HVMKERNEL="no") |
---|
92 | |
---|
93 | dnl substitute @HVMKERNEL@ in all Makefiles |
---|
94 | AC_SUBST(HVMKERNEL) |
---|
95 | |
---|
96 | AC_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 | |
---|
101 | dnl substitute @DRVDIR@ in all Makefiles |
---|
102 | AC_SUBST(DRVDIR) |
---|
103 | |
---|
104 | NETDRV="8139too.ko" |
---|
105 | AC_ARG_WITH(network-drv, |
---|
106 | [ --with-network-drv=driver Set network driver to use [[default="8139too.ko"]]], |
---|
107 | [ NETDRV="$withval" ]) |
---|
108 | |
---|
109 | dnl substitute @DRVDIR@ in all Makefiles |
---|
110 | AC_SUBST(NETDRV) |
---|
111 | |
---|
112 | AC_SUBST(TENV) |
---|
113 | AC_SUBST(PACKAGE_VERSION) |
---|
114 | |
---|
115 | AC_PROG_YACC |
---|
116 | AC_PROG_LEX |
---|
117 | |
---|
118 | # basic build files |
---|
119 | AC_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 | |
---|
161 | AC_OUTPUT |
---|
162 | |
---|
163 | chmod a+x lib/XmTestReport/xmtest.py |
---|