]>
xenbits.xensource.com Git - people/iwj/ring3-xl-test.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Ian Jackson [Fri, 26 Jun 2015 14:16:04 +0000 (15:16 +0100)]
init_domain_config: honour XLTEST_CFG_<name-of-guest>
Look for an environment variable XLTEST_CFG_<name-of-guest>. If it
exists, do not use whatever configuration is hardcoded in the test
program.
Instead, open the file named in the variable. The file needs to
contain a JSON marshalled libxl_domain_config. Such a thing can be
produced using `xl -N create' (right now, it is necessary to massage
the output from xl, pending a proposal to change xl's output format).
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Fri, 26 Jun 2015 14:15:24 +0000 (15:15 +0100)]
init_domain_config: Take a ctx parameter
No functional change.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Fri, 26 Jun 2015 14:14:52 +0000 (15:14 +0100)]
Include <libxl_utils.h>
This necessitates -Wno-sign-compare.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Thu, 25 Jun 2015 17:18:17 +0000 (18:18 +0100)]
XXX some bodge #defines to cope with rename from cancel to abort
Ian Jackson [Tue, 23 Jun 2015 18:24:53 +0000 (19:24 +0100)]
test_domain_suspend: Avoid accidentally calling libxl_destroy on 0
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Tue, 23 Jun 2015 17:44:18 +0000 (18:44 +0100)]
.gitignore: update, and include *~
Ian Jackson [Tue, 23 Jun 2015 17:42:59 +0000 (18:42 +0100)]
test_domain_create_new: Avoid calling destroy on dom0
Initialise domid to -2.
Assert that it is nonzero when we are going to destroy.
We might still try to destroy -2 or -1, but that's harmless.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Tue, 23 Jun 2015 17:41:45 +0000 (18:41 +0100)]
XXX test_domain_create_new: Initialise config every time
The config may be modified by libxl_domain_create. There appears on
my system to be some bug in the NUMA handling which means that reusing
the config causes breakage.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Tue, 23 Jun 2015 17:41:22 +0000 (18:41 +0100)]
Turn on libxl (xtl) debug log
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Tue, 23 Jun 2015 17:40:36 +0000 (18:40 +0100)]
Makefile: Order link line correctly
Unix linkers are order-sensitive, particularly for static linking, and
libraries must come after the things that use them.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Tue, 23 Jun 2015 17:40:09 +0000 (18:40 +0100)]
Makefile: Remove -ldl
We don't use dlopen any more.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Tue, 23 Jun 2015 17:12:57 +0000 (18:12 +0100)]
CFLAGS: Do not pass -pedantic
This option is of no use. One of the things that it complains about
is this:
/u/iwj/work/xen.git/tools/libxl/_libxl_types.h:34:33: error: comma at end of enumerator list [-Werror=edantic]
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Euan Harris [Mon, 22 Jun 2015 15:27:10 +0000 (15:27 +0000)]
test_domain_create_restore: Add testcase
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 14:07:28 +0000 (14:07 +0000)]
test_domain_suspend: Switch from mkstemp to tmpfile
Temporary files created by tmpfile are cleaned up automatically
when they are closed or at exit.
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 13:59:31 +0000 (13:59 +0000)]
test_domain_suspend: Clean up temporary suspend files
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 10:42:26 +0000 (10:42 +0000)]
Remove xlu_test.c
This was an experiment with the XLU config parsing routines
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 10:13:40 +0000 (10:13 +0000)]
It is not necessary to initialize the pollfds array
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 10:13:01 +0000 (10:13 +0000)]
We must always call libxl_osevent_afterpoll() after calling poll()
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 10:10:52 +0000 (10:10 +0000)]
Include string.h to use strdup
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 19 Jun 2015 10:09:56 +0000 (10:09 +0000)]
Use bool instead of int for boolean return values
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Thu, 18 Jun 2015 16:44:34 +0000 (16:44 +0000)]
Remove dynamic test loading
Unnecessary complexity
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Thu, 18 Jun 2015 14:52:19 +0000 (14:52 +0000)]
Stop leaking the suspend image FD
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Thu, 18 Jun 2015 13:28:14 +0000 (13:28 +0000)]
Don't use LIBXL_SUSPEND_LIVE in suspend test
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Wed, 17 Jun 2015 16:30:17 +0000 (16:30 +0000)]
Repeat suspend testing at different points
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Wed, 17 Jun 2015 14:24:46 +0000 (14:24 +0000)]
Move test resources into 'resources' subdirectory
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Wed, 17 Jun 2015 09:19:31 +0000 (09:19 +0000)]
Don't re-create the domain configuration each time through the loop.
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Tue, 16 Jun 2015 16:34:55 +0000 (16:34 +0000)]
Add more assertions to test_domain_create_new.c
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Tue, 16 Jun 2015 14:56:49 +0000 (14:56 +0000)]
Move wait_until into the test library
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Tue, 16 Jun 2015 13:07:08 +0000 (13:07 +0000)]
Refactor end of test
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Tue, 16 Jun 2015 11:29:24 +0000 (11:29 +0000)]
Refactor test teardown
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Fri, 5 Jun 2015 09:59:27 +0000 (09:59 +0000)]
Fixes for slightly newer compiler
Signed-off-by: Euan Harris <euan.harris@citrix.com>
Euan Harris [Wed, 3 Jun 2015 15:32:13 +0000 (15:32 +0000)]
Initial commit
Signed-off-by: Euan Harris <euan.harris@citrix.com>