ia64/xen-unstable

view tools/xm-test/configure.ac @ 10317:f99ba86ad96b

Block device write-verify test.

This test imports a ram disk device as a physical device into a domU.
The domU initialises the ram disk with data from /dev/urandom and
calculates the md5 checksum of the data (using tee as it is written so as to
avoid reading it back from the device which might potentially mask
problems).
The domU is stopped and the md5 checksum of the data on the device is
calculated by dom0. The test succeeds if the checksums match, indicating
that all the data written by domU was sucessfully committed to the
device.

This patch also enables tee in BusyBox on the ramdisk and increments the
xm-test version number to 0.8.0.

The patch also installs the block-integrity tests in the default test
set so they get executed.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Jun 01 11:47:00 2006 +0100 (2006-06-01)
parents 9b11eeab4558
children a1b83fedc4ed
line source
1 # xm-test configure.ac input script
3 # Basic header information
4 AC_INIT([xm-test], [0.8.0])
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/block-integrity/Makefile
103 tests/console/Makefile
104 tests/create/Makefile
105 tests/destroy/Makefile
106 tests/dmesg/Makefile
107 tests/domid/Makefile
108 tests/domname/Makefile
109 tests/help/Makefile
110 tests/info/Makefile
111 tests/list/Makefile
112 tests/memmax/Makefile
113 tests/memset/Makefile
114 tests/migrate/Makefile
115 tests/network-attach/Makefile
116 tests/network/Makefile
117 tests/pause/Makefile
118 tests/reboot/Makefile
119 tests/restore/Makefile
120 tests/save/Makefile
121 tests/sedf/Makefile
122 tests/shutdown/Makefile
123 tests/sysrq/Makefile
124 tests/unpause/Makefile
125 tests/vcpu-pin/Makefile
126 tests/vcpu-disable/Makefile
127 tests/vtpm/Makefile
128 tests/enforce_dom0_cpus/Makefile
129 lib/XmTestReport/xmtest.py
130 lib/XmTestLib/config.py
131 ])
133 AC_OUTPUT
135 chmod a+x lib/XmTestReport/xmtest.py