Re: [PATCH for-6.2 v2 11/11] tests/unit: Add a unit test for smp parsing

2021-07-22 Thread wangyanan (Y)
On 2021/7/22 21:12, Andrew Jones wrote: On Thu, Jul 22, 2021 at 02:15:18PM +0800, wangyanan (Y) wrote: On 2021/7/20 2:57, Andrew Jones wrote: On Mon, Jul 19, 2021 at 11:20:43AM +0800, Yanan Wang wrote: Add a QEMU unit test for the parsing of given SMP configuration. Since all the parsing

Re: [PATCH for-6.2 v2 11/11] tests/unit: Add a unit test for smp parsing

2021-07-22 Thread Andrew Jones
On Thu, Jul 22, 2021 at 02:15:18PM +0800, wangyanan (Y) wrote: > On 2021/7/20 2:57, Andrew Jones wrote: > > On Mon, Jul 19, 2021 at 11:20:43AM +0800, Yanan Wang wrote: > > > Add a QEMU unit test for the parsing of given SMP configuration. > > > Since all the parsing logic is in generic function

Re: [PATCH for-6.2 v2 11/11] tests/unit: Add a unit test for smp parsing

2021-07-22 Thread wangyanan (Y)
On 2021/7/20 2:57, Andrew Jones wrote: On Mon, Jul 19, 2021 at 11:20:43AM +0800, Yanan Wang wrote: Add a QEMU unit test for the parsing of given SMP configuration. Since all the parsing logic is in generic function smp_parse(), this test passes diffenent SMP configurations to the function and

Re: [PATCH for-6.2 v2 11/11] tests/unit: Add a unit test for smp parsing

2021-07-19 Thread Andrew Jones
On Mon, Jul 19, 2021 at 11:20:43AM +0800, Yanan Wang wrote: > Add a QEMU unit test for the parsing of given SMP configuration. > Since all the parsing logic is in generic function smp_parse(), > this test passes diffenent SMP configurations to the function > and compare the parsing result with

[PATCH for-6.2 v2 11/11] tests/unit: Add a unit test for smp parsing

2021-07-18 Thread Yanan Wang
Add a QEMU unit test for the parsing of given SMP configuration. Since all the parsing logic is in generic function smp_parse(), this test passes diffenent SMP configurations to the function and compare the parsing result with what is expected. In the test, all possible collections of the