]> xenbits.xensource.com Git - xen.git/commit
libxl/gentest.py: test deep copy functions
authorWei Liu <wei.liu2@citrix.com>
Wed, 9 Jul 2014 09:45:30 +0000 (10:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 10 Jul 2014 12:06:55 +0000 (13:06 +0100)
commitce3fd13bea454f158dbfabcc95c91c77a6bd940b
tree035a6d32a5ef5c43232675fe015f9ccf84ae6454
parentf1f1881a195a881748567c69e980518847ce3007
libxl/gentest.py: test deep copy functions

The test is done as followed:
1. initialise libxl_FOO struct A
2. deep-copy A to B
3. generate JSON string for A and B
4. compare two JSON strings

If two strings are identical then we're good.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/gentest.py