ia64/xen-unstable

view tools/xm-test/tests/create/12_create_concurrent_stress_pos.py @ 7685:40f3ce3516cb

1. Unmark the 07 and 08 tests of block_attach as XFAIL
2. Change the MEM_PER_DOM amount in 11_create_concurrent to 24MB, so
that the test will run on x86_64.
3. Increase the number of DomUs created in 12_create_concurrent to 5
4. Fix a logic error in 01_unpause
5. Add a test 06_help that checks all xm commands with 0-10 arguments
to make sure none of them traceback with varying argument counts.

Signed-off-by: Dan Smith <danms@us.ibm.com>
author emellor@leeni.uk.xensource.com
date Tue Nov 08 11:56:55 2005 +0100 (2005-11-08)
parents ecb5997f7b25
children 1dc393b65019
line source
1 #!/usr/bin/python
3 # Copyright (C) International Business Machines Corp., 2005
4 # Authors: Dan Smith <danms@us.ibm.com>
6 from XmTestLib import *
8 import time
10 DOMS=5
11 MEM=32
12 DUR=60
14 domains = []
16 for i in range(0,DOMS):
17 dom = XmTestDomain(extraOpts={"memory" : str(MEM)})
19 try:
20 dom.start()
21 except DomainError, e:
22 if verbose:
23 print str(e)
24 FAIL("Failed to start %s" % dom.getName())
26 try:
27 cons = XmConsole(dom.getName())
28 cons.sendInput("foo")
29 except ConsoleError, e:
30 FAIL(str(e))
32 if verbose:
33 print "[%i/%i] Started %s" % (i, DOMS, dom.getName())
35 domains.append([dom, cons])
37 # Started DOMS domains, now we put them to work
39 for d, c in domains:
40 if verbose:
41 print "Starting task on %s" % d.getName()
42 c.sendInput("gzip -c </dev/zero >/dev/null &\n")
44 if verbose:
45 print "Waiting %i seconds..." % DUR
47 time.sleep(DUR)
49 for d, c in domains:
51 if verbose:
52 print "Testing domain %s..." % d.getName()
54 run = c.runCmd("ls")
56 if run["return"] != 0:
57 FAIL("Domain %s didn't survive!" % d.getName())