Skip to contentSkip to conversation

Does Xen project have test suites for testing xc/xl/hypercall and so on?

DISCUSSION Jinjian (Ken) 4 participants 4 messages Aug 7, 2015 – Aug 10, 2015

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · Jinjian (Ken)

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

Quoted 8 lines

'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

#2 lore raw

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

Quoted 30 lines · Andrew Cooper
Quoted 5 lines · Jinjian (Ken)

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

Quoted 8 lines

'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
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw

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

Quoted 34 lines · Lars Kurth

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

Quoted 30 lines · Andrew Cooper
Quoted 5 lines · Jinjian (Ken)

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

Quoted 8 lines

'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
[email protected]
http://lists.xen.org/xen-devel