From: Ian Campbell Subject: Re: [PATCH 07/15] xl: test script for the cpumap parser (for vCPU pinning) Date: Thu, 10 Oct 2013 11:32:18 +0100 Message-ID: <1381401138.7600.65.camel@kazak.uk.xensource.com> References: <20131003174413.28472.8989.stgit@Solace> <20131003174627.28472.74382.stgit@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131003174627.28472.74382.stgit@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Marcus Granado , Keir Fraser , Matt Wilson , Li Yechen , George Dunlap , Andrew Cooper , Juergen Gross , Ian Jackson , xen-devel@lists.xen.org, Jan Beulich , Justin Weaver , Daniel De Graaf , Elena Ufimtseva List-Id: xen-devel@lists.xenproject.org On Thu, 2013-10-03 at 19:46 +0200, Dario Faggioli wrote: > This commit introduces "check-xl-vcpupin-parse" for helping > verifying and debugging the (v)CPU bitmap parsing code in xl. > > The script runs "xl -N vcpu-pin 0 all " > repeatedly, with various input strings, and checks that the > output is as expected. > > This is what the script can do: > > # ./check-xl-vcpupin-parse -h > usage: ./check-xl-vcpupin-parse [options] > > Tests various vcpu-pinning strings. If run without arguments acts > as follows: > - generates some test data and saves them in > check-xl-vcpupin-parse.data; > - tests all the generated configurations (reading them back from > check-xl-vcpupin-parse.data). > > An example of a test vector file is provided in > check-xl-vcpupin-parse.data-example. > > Options: > -h prints this message > -r seed uses seed for initializing the rundom number generator > (default: the script PID) > -s string tries using string as a vcpu pinning configuration and > reports whether that succeeds or not > -o ofile save the test data in ofile > (default: check-xl-vcpupin-parse.data) > -i ifile read test data from ifile > > An example test data file (generated on a 2 NUMA nodes, 16 CPUs > host) is being provided in check-xl-vcpupin-parse.data-example. > > Signed-off-by: Dario Faggioli Acked-by: Ian Campbell (I haven't actually reviewed this in much detail, any test case is better than none IMHO) [...] > +# > +# Testing a wring configuration There's a certain irony in spelling wrong incorrectly I think ;-)