Skip to contentSkip to conversation

eglibc testing?

DISCUSSION Phil Blundell 4 participants 12 messages Jun 16, 2011 – Dec 9, 2011

lore
Share & tools
lore
#0 lore raw

I just ran "make check" under qemu on my eglibc-2.13 build (from oe-core master) and got rather a lot of failures. It wasn't immediately obvious to me whether these were libc bugs, qemu infelicities, oe-related harness problems, or some kind of local finger trouble.

Before I spend too much time investigating this, are other people seeing the same effect? What approach do the Yocto folks use for glibc
testing: are they running the testsuite directly on target hardware, or via qemu, or something else?

The gcc testsuite is next on my list to look at and, again, I'd be interested to hear what approach other folks are using there and what sort of results they are currently getting.

thanks

p.

#1 lore raw
Quoted 9 lines · Phil Blundell

I just ran "make check" under qemu on my eglibc-2.13 build (from oe-core master) and got rather a lot of failures. It wasn't immediately obvious to me whether these were libc bugs, qemu infelicities, oe-related harness problems, or some kind of local finger trouble.

Before I spend too much time investigating this, are other people seeing the same effect? What approach do the Yocto folks use for glibc
testing: are they running the testsuite directly on target hardware, or via qemu, or something else?

I nfsmount eglibc builddir on target and run the testsuite. I see aroung 10-15 fails. Havent run the testsuite in a while

Quoted 5 lines

The gcc testsuite is next on my list to look at and, again, I'd be interested to hear what approach other folks are using there and what sort of results they are currently getting.

I have a script that I use to launch cross testing needs a bit of setup
like passwordless ssh access to target. Results are pretty sane I have posted results to oe-ml occasionally.

I can start some testsuite once my build finishes today and post.

Quoted 10 lines

thanks

p.

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 2 lines · Khem Raj

I nfsmount eglibc builddir on target and run the testsuite. I see aroung 10-15 fails. Havent run the testsuite in a while

Maybe the right thing to do with eglibc would be to build a rootfs containing the testsuite, run it up in qemu-system-arm, and then engineer some IPC mechanism to get the test results back to the host. That way you would at least be testing something close to the real target kernel, rather than the qemu syscall emulation which I suspect is to blame for some of my failures.

For gcc it'd probably be fine to just run the individual tests under qemu directly since they don't tend to have a lot of OS dependency.

p.

#3 lore raw
Quoted 7 lines · Phil Blundell
Quoted 2 lines · Khem Raj

I nfsmount eglibc builddir on target and run the testsuite. I see aroung 10-15 fails. Havent run the testsuite in a while

Maybe the right thing to do with eglibc would be to build a rootfs containing the testsuite, run it up in qemu-system-arm, and then engineer some IPC mechanism to get the test results back to the host.

using nfs isnt bad either since the tests excercise libraries from /lib on target IOW installed eglibc.

Quoted 7 lines

That way you would at least be testing something close to the real target kernel, rather than the qemu syscall emulation which I suspect is to blame for some of my failures.

For gcc it'd probably be fine to just run the individual tests under qemu directly since they don't tend to have a lot of OS dependency.

Yes I think I should put together my mechanism somewhere and post it and dejaGNU setup I use for cross testing

Quoted 8 lines

p.

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 11 lines · Khem Raj
Quoted 7 lines · Phil Blundell
Quoted 2 lines · Khem Raj

I nfsmount eglibc builddir on target and run the testsuite. I see aroung 10-15 fails. Havent run the testsuite in a while

Maybe the right thing to do with eglibc would be to build a rootfs containing the testsuite, run it up in qemu-system-arm, and then engineer some IPC mechanism to get the test results back to the host.

using nfs isnt bad either since the tests excercise libraries from /lib on target IOW installed eglibc.

True, though I can't think of any instances where the libc behaviour will change depending on where it's installed.

The thing about nfs is that it's awkward to set up in an automated way. What I want is to arrive at a situation where you can just do:

$ bitbake -c check micro-base-image (or whatever)

and have it build all the necessary components, run their respective testsuites, and generate a report of both the current status and any regressions. Ideally I want this to be doable without a lot of installation-specific fiddling around with networking configuration and suchlike, and I definitely want an arrangement which doesn't rely on having target hardware on hand. Practically speaking I think that means it basically has to be qemu of some kind or another.

Quoted 2 lines

Yes I think I should put together my mechanism somewhere and post it and dejaGNU setup I use for cross testing

That would be cool.

p.

#5 lore raw
Quoted 10 lines · Phil Blundell
Quoted 9 lines · Khem Raj
Quoted 7 lines · Phil Blundell
Quoted 2 lines · Khem Raj

I nfsmount eglibc builddir on target and run the testsuite. I see aroung 10-15 fails. Havent run the testsuite in a while

Maybe the right thing to do with eglibc would be to build a rootfs containing the testsuite, run it up in qemu-system-arm, and then engineer some IPC mechanism to get the test results back to the host.

Quoted 7 lines
Quoted 2 lines

using nfs isnt bad either since the tests excercise libraries from /lib on target IOW installed eglibc.

True, though I can't think of any instances where the libc behaviour will change depending on where it's installed.

The thing about nfs is that it's awkward to set up in an automated way.

The qemu scripts in OE-Core use usermode NFS by default for booting qemu images...

Quoted 12 lines

What I want is to arrive at a situation where you can just do:

$ bitbake -c check micro-base-image (or whatever)

and have it build all the necessary components, run their respective testsuites, and generate a report of both the current status and any regressions. Ideally I want this to be doable without a lot of installation-specific fiddling around with networking configuration and suchlike, and I definitely want an arrangement which doesn't rely on having target hardware on hand. Practically speaking I think that means it basically has to be qemu of some kind or another.

Quoted 4 lines
Quoted 2 lines

Yes I think I should put together my mechanism somewhere and post it and dejaGNU setup I use for cross testing

That would be cool.

We have the automated image QA tests in OE-Core already so perhaps we could extend these to handle the tests somehow?

Cheers,

Richard

#6 lore raw
Quoted 5 lines · Richard Purdie
Quoted 1 line · Phil Blundell

The thing about nfs is that it's awkward to set up in an automated way.

The qemu scripts in OE-Core use usermode NFS by default for booting qemu images...

Yeah, indeed, and I think the mechanism that they use to do this supports my assessment of "awkward". But presumably it does at least work and I guess that might be the easiest way to do glibc testing as well. For gcc testing I think a dedicated qemu harness is probably a better answer.

p.

#7 lore raw
In reply to Khem Raj
Quoted 2 lines · Khem Raj

Yes I think I should put together my mechanism somewhere and post it and dejaGNU setup I use for cross testing

Did you get a chance to do this at all?

thanks

p.

#9 lore raw
Quoted 9 lines · Khem Raj
Quoted 6 lines · Phil Blundell
Quoted 2 lines · Khem Raj

Yes I think I should put together my mechanism somewhere and post it and dejaGNU setup I use for cross testing

Did you get a chance to do this at all?

so far no. Let me collect them and make sure they work

Just a quick reminder about this :-)

p.

#10 lore raw
Quoted 7 lines · Phil Blundell
Quoted 6 lines · Khem Raj
Quoted 5 lines · Phil Blundell
Quoted 3 lines · Khem Raj

Yes I think I should put together my mechanism somewhere and post it
and dejaGNU setup I use for cross testing

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Did you get a chance to do this at all?

so far no. Let me collect them and make sure they work

Just a quick reminder about this :-)

Sorry Phil, I owe it to you :) I have not finished it yet.

Quoted 8 lines

p.

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 1 line
Khem Raj
#11 lore raw
In reply to Phil Blundell
Quoted 6 lines · Phil Blundell

I just ran "make check" under qemu on my eglibc-2.13 build (from oe-core master) and got rather a lot of failures. It wasn't immediately obvious to me whether these were libc bugs, qemu infelicities, oe-related harness problems, or some kind of local finger trouble.

Quoted 9 lines

Before I spend too much time investigating this, are other people seeing the same effect? What approach do the Yocto folks use for glibc
testing: are they running the testsuite directly on target hardware, or via qemu, or something else?

The gcc testsuite is next on my list to look at and, again, I'd be interested to hear what approach other folks are using there and what sort of results they are currently getting.

Hi Phil

I have finally found some time to cobble up howto cross test eglibc on top of oe-core
I have tried to document it here
http://sakrah.homelinux.org/blog/2011/12/cross-testing-eglibc-regression-
testsuite-using-openembedded-coreqemu/

Right now I see around 34 failures on arm out of 1100 odd tests it ran Let me know if you have any feedback on it.

I will also post the cross gcc testing howto sometimes soon

Quoted 4 lines

thanks

p.