* Does Xen project have test suites for testing xc/xl/hypercall and so on?
@ 2015-08-07 8:47 Jinjian (Ken)
2015-08-10 12:18 ` Andrew Cooper
0 siblings, 1 reply; 4+ messages in thread
From: Jinjian (Ken) @ 2015-08-07 8:47 UTC (permalink / raw)
To: xen-devel; +Cc: john.liuqiming, guoyanjuan, fanhenglong, Huangpeng (Peter)
Hi all,
I'm looking into xen's test suites now, and encounter some problems.
Does xen have unit tests that can be executed by xen contributors to
validate their code-commits before sending a patch to xen-devel?
In xen-4.5.1(and its upstream), there are sevral test cases in the
'tests' directory, but these are much like tools, rather than test cases
at my view. For example, it obtains physical address by hypercall and
write relevant MSR in mce-test, but it didn't tell us whether the
address obtained was correct? and is the register written successfully?
There seems to have no method or expected results to check them.
If it was unit test, it is obviously not enough for xen. Are there
any more test methods to ensure the accuracy and stability of xen?
Thank you in advance.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Does Xen project have test suites for testing xc/xl/hypercall and so on?
2015-08-07 8:47 Does Xen project have test suites for testing xc/xl/hypercall and so on? Jinjian (Ken)
@ 2015-08-10 12:18 ` Andrew Cooper
2015-08-10 12:30 ` Lars Kurth
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cooper @ 2015-08-10 12:18 UTC (permalink / raw)
To: Jinjian (Ken), xen-devel
Cc: john.liuqiming, guoyanjuan, fanhenglong, Huangpeng (Peter)
On 07/08/15 09:47, Jinjian (Ken) wrote:
> Hi all,
> I'm looking into xen's test suites now, and encounter some problems.
> Does xen have unit tests that can be executed by xen contributors to
> validate their code-commits before sending a patch to xen-devel?
> In xen-4.5.1(and its upstream), there are sevral test cases in the
> 'tests' directory, but these are much like tools, rather than test
> cases at my view. For example, it obtains physical address by
> hypercall and write relevant MSR in mce-test, but it didn't tell us
> whether the address obtained was correct? and is the register written
> successfully? There seems to have no method or expected results to
> check them.
> If it was unit test, it is obviously not enough for xen. Are there
> any more test methods to ensure the accuracy and stability of xen?
There is basically nothing in the way of unit tests which I am aware
of. We rely on code review and functional testing primarily.
I have some plans to introduce some functional tests from a guests
perspective. I hope to have these ready in the 4.7 timeframe, but there
is nothing similar which I am aware of.
~Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Does Xen project have test suites for testing xc/xl/hypercall and so on?
2015-08-10 12:18 ` Andrew Cooper
@ 2015-08-10 12:30 ` Lars Kurth
2015-08-10 13:01 ` Stefano Stabellini
0 siblings, 1 reply; 4+ messages in thread
From: Lars Kurth @ 2015-08-10 12:30 UTC (permalink / raw)
To: Andrew Cooper, Stefano Stabellini
Cc: Huangpeng (Peter), Xen Devel, guoyanjuan, Fanhenglong,
Liuqiming (John), Jinjian (Ken)
There is some very minimal functionality in Raisin for testing, which Stefano is working on. See https://blog.xenproject.org/2015/06/28/project-raisin-raise-xen/
Lars
> On 10 Aug 2015, at 13:18, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>
> On 07/08/15 09:47, Jinjian (Ken) wrote:
>> Hi all,
>> I'm looking into xen's test suites now, and encounter some problems.
>> Does xen have unit tests that can be executed by xen contributors to
>> validate their code-commits before sending a patch to xen-devel?
>> In xen-4.5.1(and its upstream), there are sevral test cases in the
>> 'tests' directory, but these are much like tools, rather than test
>> cases at my view. For example, it obtains physical address by
>> hypercall and write relevant MSR in mce-test, but it didn't tell us
>> whether the address obtained was correct? and is the register written
>> successfully? There seems to have no method or expected results to
>> check them.
>> If it was unit test, it is obviously not enough for xen. Are there
>> any more test methods to ensure the accuracy and stability of xen?
>
> There is basically nothing in the way of unit tests which I am aware
> of. We rely on code review and functional testing primarily.
>
> I have some plans to introduce some functional tests from a guests
> perspective. I hope to have these ready in the 4.7 timeframe, but there
> is nothing similar which I am aware of.
>
> ~Andrew
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Does Xen project have test suites for testing xc/xl/hypercall and so on?
2015-08-10 12:30 ` Lars Kurth
@ 2015-08-10 13:01 ` Stefano Stabellini
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Stabellini @ 2015-08-10 13:01 UTC (permalink / raw)
To: Lars Kurth
Cc: Stefano Stabellini, Andrew Cooper, Huangpeng (Peter), Xen Devel,
guoyanjuan, Fanhenglong, Liuqiming (John), Jinjian (Ken)
Hi Jinjian,
validating changes made by contributors before submitting their patches
to xen-devel, is exactly the reason why I introduced "raise test" in
raisin. However the number of tests available is still very limited and
the functionality pretty immature.
Of course I would be happy to take patches to improve it :-)
Cheers,
Stefano
On Mon, 10 Aug 2015, Lars Kurth wrote:
> There is some very minimal functionality in Raisin for testing, which Stefano is working on. See https://blog.xenproject.org/2015/06/28/project-raisin-raise-xen/
> Lars
>
> > On 10 Aug 2015, at 13:18, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
> >
> > On 07/08/15 09:47, Jinjian (Ken) wrote:
> >> Hi all,
> >> I'm looking into xen's test suites now, and encounter some problems.
> >> Does xen have unit tests that can be executed by xen contributors to
> >> validate their code-commits before sending a patch to xen-devel?
> >> In xen-4.5.1(and its upstream), there are sevral test cases in the
> >> 'tests' directory, but these are much like tools, rather than test
> >> cases at my view. For example, it obtains physical address by
> >> hypercall and write relevant MSR in mce-test, but it didn't tell us
> >> whether the address obtained was correct? and is the register written
> >> successfully? There seems to have no method or expected results to
> >> check them.
> >> If it was unit test, it is obviously not enough for xen. Are there
> >> any more test methods to ensure the accuracy and stability of xen?
> >
> > There is basically nothing in the way of unit tests which I am aware
> > of. We rely on code review and functional testing primarily.
> >
> > I have some plans to introduce some functional tests from a guests
> > perspective. I hope to have these ready in the 4.7 timeframe, but there
> > is nothing similar which I am aware of.
> >
> > ~Andrew
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-08-10 13:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-07 8:47 Does Xen project have test suites for testing xc/xl/hypercall and so on? Jinjian (Ken)
2015-08-10 12:18 ` Andrew Cooper
2015-08-10 12:30 ` Lars Kurth
2015-08-10 13:01 ` Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.