From: Wei Liu Subject: Re: [PATCH V4 13/24] libxl/gentest.py: test JSON parser Date: Tue, 6 May 2014 15:11:43 +0100 Message-ID: <20140506141143.GJ17067@zion.uk.xensource.com> References: <1398949101-23320-1-git-send-email-wei.liu2@citrix.com> <1398949101-23320-14-git-send-email-wei.liu2@citrix.com> <1399384001.3014.137.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1399384001.3014.137.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, May 06, 2014 at 02:46:41PM +0100, Ian Campbell wrote: > On Thu, 2014-05-01 at 13:58 +0100, Wei Liu wrote: > > The test is done in following steps: > > > > 1. initialise libxl_FOO struct > > 2. generate JSON string A for libxl_FOO struct FOO1 > > 3. convert JSON string A to libxl_FOO struct FOO2 > > 4. generate JSON string B for libxl_FOO struct FOO2 > > 5. compare A and B > > > > If A and B are identical then we are good. > > I presume you have run this and we are good? > Yes, I ran it with a script for several hours. It worked fine. I also deliberately increased the lenght of array to stress it more. $!/bin/sh XL=/local/scratch/xen-toolstack.git/tools/libxl while true; do touch $XL/gentest.py make -C $XL/ >/dev/null scp $XL/testidl root@h16:~ ssh root@h16 /root/testidl if [ $? -ne 0 ]; then echo "FAIL" exit 255 fi done > > Signed-off-by: Wei Liu > > Acked-by: Ian Campbell > Thanks