* [Buildroot] buildroot's support of ltp-testsuite
@ 2011-01-14 2:34 David Fisher
2011-01-14 7:53 ` Thomas Petazzoni
0 siblings, 1 reply; 7+ messages in thread
From: David Fisher @ 2011-01-14 2:34 UTC (permalink / raw)
To: buildroot
The latest version of buildroot has a directory of
.../buildroot/package/ltp-testsuite, which includes Config.in,
ltp-testsuite.mk and five patch files.
The third line of Config.in is "depends on BROKEN". As a result the
ltp-testsuite could not be compiled under buildroot.
Any plan to fix this problem, so the ltp-testsuite could be built?
Thank you in advance,
David Fisher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110113/188e3b71/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] buildroot's support of ltp-testsuite
@ 2011-01-14 3:26 David Fisher
0 siblings, 0 replies; 7+ messages in thread
From: David Fisher @ 2011-01-14 3:26 UTC (permalink / raw)
To: buildroot
The latest version of buildroot has a directory of
.../buildroot/package/ltp-testsuite, which includes Config.in,
ltp-testsuite.mk and five patch files.
The third line of Config.in is "depends on BROKEN". As a result the
ltp-testsuite could not be compiled under buildroot.
Any plan to fix this problem, so the ltp-testsuite could be built?
Thank you in advance,
David Fisher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110113/b529db73/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] buildroot's support of ltp-testsuite
2011-01-14 2:34 [Buildroot] buildroot's support of ltp-testsuite David Fisher
@ 2011-01-14 7:53 ` Thomas Petazzoni
[not found] ` <AANLkTik1WhgfrQtEjh6_TH2zn5sQMbs_7ixFPPOpghVR@mail.gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2011-01-14 7:53 UTC (permalink / raw)
To: buildroot
On Thu, 13 Jan 2011 18:34:48 -0800
David Fisher <dfisher769@gmail.com> wrote:
> The latest version of buildroot has a directory of
> .../buildroot/package/ltp-testsuite, which includes Config.in,
> ltp-testsuite.mk and five patch files.
> The third line of Config.in is "depends on BROKEN". As a result the
> ltp-testsuite could not be compiled under buildroot.
>
> Any plan to fix this problem, so the ltp-testsuite could be built?
This has been improved a bit in the current Git version, through the
following commit:
a72a670489547a3ca645ff7c3a0d9c3fb66eab51
However, beware that ltp-testsuite cannot be built with the default
Buildroot configuration for uClibc, as ltp-testsuite uses some legacy
functions that we don't enable in our default build of uClibc.
ltp-testsuite however builds fine with an external toolchain that
relies on glibc, and it even runs on ARM (some tests have issues, but
most of the tests were working correctly).
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] buildroot's support of ltp-testsuite
[not found] ` <AANLkTik1WhgfrQtEjh6_TH2zn5sQMbs_7ixFPPOpghVR@mail.gmail.com>
@ 2011-01-24 14:31 ` Thomas Petazzoni
2011-01-26 4:02 ` David Fisher
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2011-01-24 14:31 UTC (permalink / raw)
To: buildroot
Hello David,
Please keep the Buildroot list in Cc for all Buildroot-related topics.
On Thu, 20 Jan 2011 20:27:47 -0800
David Fisher <dfisher769@gmail.com> wrote:
> Thank you very much for answer.
> I am trying to evaluate the possibility of using the LTP test suite for
> embedded software, basing on Linux kernel, which was built with the Build
> Root tool, using uClibc.
>
> I found in your posting at Free Electronics "On the road to Buildroot
> 2009.08", from August 3, 2009, that ltp-testsuite is on the list of upgraded
> packages. Also there is ltp-testsuite directory (under buildroot/package),
> so it was my understanding that it could be compiled under uClibc, exactly
> as it could be compiled under non embedded Fedora, which uses glibc.
> (By the way the version of August 30, 2009, -- 20090830, which is used there
> would not compile even under Fedora, because of bug. The "tst_exit"
> function, used in the "inh_capped.c" with an argument, while the prototype
> of this function, defined in the "test.h" defines it as
> "void tst_exit(void) LTP_ATTRIBUTE_NORETURN*;*", however in the newer
> versions of the ltp this bug is fixed. I modified the version's date in all
> the related files of the ltp-testsuite and tried to compile, however without
> success. The file "ballistaRPC.h, which is generated automatically using
> rpcgen, and therefore should not be edited, has a line *#include <rpc/rpc.h>
> *, while the rpc.h file does not exist.)
>
> *My major two questions are:*
> *1. Is there any possibility to build (at least a portion of) LTP test suite
> above uClibc and test with it the kernel? If yes, how to do it?*
It is probably possible, but not with the default uClibc configuration
used in Buildroot. The LTP test-suite uses some functions that are
considered legacy: those functions are present in glibc, but not in
traditional configurations of uClibc. With enough effort, you can
probably find all the uClibc options needed to generate an uClibc that
has all the required features to run ltp-testsuite. I have however
never tried this, so I can't say for sure if it's feasible or not.
> *2. If not, could you please provide with more details how to use the ltp,
> built on external toolchain that relies on glibc, which you mention in your
> email to me?*
If you're using Buildroot 2010.11 (the latest stable version at this
time), then you have to first download and install a glibc toolchain
separatly. If you're working on ARM, my recommandation would be the
CodeSourcery toolchains. If you're working on another architecture, you
may want to try Crosstool-NG to generate a toolchain. Once you have the
toolchain, just configure Buildroot to use it as an external toolchain.
If you're using Buildroot Git (which will become the next stable
version, at the end of February), then Buildroot can automatically
download and install an external toolchain for you, at least for the
CodeSourcery toolchains on ARM, MIPS, PowerPC and SH.
Note that the ltp-testsuite package has been upgraded recently in
Buildroot:
http://git.buildroot.net/buildroot/commit/?id=a72a670489547a3ca645ff7c3a0d9c3fb66eab51.
The version used is newer than the one you would use if you work with
Buildroot 2010.11.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] buildroot's support of ltp-testsuite
2011-01-24 14:31 ` Thomas Petazzoni
@ 2011-01-26 4:02 ` David Fisher
2011-01-29 9:11 ` Thomas Petazzoni
0 siblings, 1 reply; 7+ messages in thread
From: David Fisher @ 2011-01-26 4:02 UTC (permalink / raw)
To: buildroot
Hello Thomas,
Thak you very much for the referal. Although it is much better than I had
until now (at least I can select ltp on menuconfig, without modifying
original files), but still has some problems. In many directories the LTP
sets by default the _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built
without large file support enabled.
I wounder which utilities people use to test the embedded Linux builds using
the buildroot. It appears that the LTP perfectly works for non embedded
systems, while compiled using glibc.
If you know some other test utilities besides LTP test suite (and
Crackerjack, which does not fit either), that are commonly used for testing
this enviroment I would very appreciate this information.
Thank you in advance
David.
On Mon, Jan 24, 2011 at 6:31 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:
> Hello David,
>
> Please keep the Buildroot list in Cc for all Buildroot-related topics.
>
> On Thu, 20 Jan 2011 20:27:47 -0800
> David Fisher <dfisher769@gmail.com> wrote:
>
> > Thank you very much for answer.
> > I am trying to evaluate the possibility of using the LTP test suite for
> > embedded software, basing on Linux kernel, which was built with the Build
> > Root tool, using uClibc.
> >
> > I found in your posting at Free Electronics "On the road to Buildroot
> > 2009.08", from August 3, 2009, that ltp-testsuite is on the list of
> upgraded
> > packages. Also there is ltp-testsuite directory (under
> buildroot/package),
> > so it was my understanding that it could be compiled under uClibc,
> exactly
> > as it could be compiled under non embedded Fedora, which uses glibc.
> > (By the way the version of August 30, 2009, -- 20090830, which is used
> there
> > would not compile even under Fedora, because of bug. The "tst_exit"
> > function, used in the "inh_capped.c" with an argument, while the
> prototype
> > of this function, defined in the "test.h" defines it as
> > "void tst_exit(void) LTP_ATTRIBUTE_NORETURN*;*", however in the newer
> > versions of the ltp this bug is fixed. I modified the version's date in
> all
> > the related files of the ltp-testsuite and tried to compile, however
> without
> > success. The file "ballistaRPC.h, which is generated automatically using
> > rpcgen, and therefore should not be edited, has a line *#include
> <rpc/rpc.h>
> > *, while the rpc.h file does not exist.)
> >
> > *My major two questions are:*
> > *1. Is there any possibility to build (at least a portion of) LTP test
> suite
> > above uClibc and test with it the kernel? If yes, how to do it?*
>
> It is probably possible, but not with the default uClibc configuration
> used in Buildroot. The LTP test-suite uses some functions that are
> considered legacy: those functions are present in glibc, but not in
> traditional configurations of uClibc. With enough effort, you can
> probably find all the uClibc options needed to generate an uClibc that
> has all the required features to run ltp-testsuite. I have however
> never tried this, so I can't say for sure if it's feasible or not.
>
> > *2. If not, could you please provide with more details how to use the
> ltp,
> > built on external toolchain that relies on glibc, which you mention in
> your
> > email to me?*
>
> If you're using Buildroot 2010.11 (the latest stable version at this
> time), then you have to first download and install a glibc toolchain
> separatly. If you're working on ARM, my recommandation would be the
> CodeSourcery toolchains. If you're working on another architecture, you
> may want to try Crosstool-NG to generate a toolchain. Once you have the
> toolchain, just configure Buildroot to use it as an external toolchain.
>
> If you're using Buildroot Git (which will become the next stable
> version, at the end of February), then Buildroot can automatically
> download and install an external toolchain for you, at least for the
> CodeSourcery toolchains on ARM, MIPS, PowerPC and SH.
>
> Note that the ltp-testsuite package has been upgraded recently in
> Buildroot:
>
> http://git.buildroot.net/buildroot/commit/?id=a72a670489547a3ca645ff7c3a0d9c3fb66eab51
> .
> The version used is newer than the one you would use if you work with
> Buildroot 2010.11.
>
> Regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110125/81c17ae3/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] buildroot's support of ltp-testsuite
2011-01-26 4:02 ` David Fisher
@ 2011-01-29 9:11 ` Thomas Petazzoni
2011-01-29 10:58 ` Will Newton
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2011-01-29 9:11 UTC (permalink / raw)
To: buildroot
Hello David,
On Tue, 25 Jan 2011 20:02:45 -0800
David Fisher <dfisher769@gmail.com> wrote:
> Thak you very much for the referal. Although it is much better than I had
> until now (at least I can select ltp on menuconfig, without modifying
> original files), but still has some problems. In many directories the LTP
> sets by default the _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built
> without large file support enabled.
>
> I wounder which utilities people use to test the embedded Linux builds using
> the buildroot. It appears that the LTP perfectly works for non embedded
> systems, while compiled using glibc.
Yes, in its current state, LTP seems to work only with glibc. It would
be great if there was an effort to adapt LTP to embedded systems: make
it work with uClibc, and tune some constants to make the tests actually
possible on typical ARM/PowerPC platforms (some tests have constants
that have been defined for 2+Ghz machines with multiple GB of RAMs, and
they spawn so many processes that the poor ARM platform just can't
handle the load).
> If you know some other test utilities besides LTP test suite (and
> Crackerjack, which does not fit either), that are commonly used for testing
> this enviroment I would very appreciate this information.
I am personally aware of other similar tools, but I have never
investigated this area seriously.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] buildroot's support of ltp-testsuite
2011-01-29 9:11 ` Thomas Petazzoni
@ 2011-01-29 10:58 ` Will Newton
0 siblings, 0 replies; 7+ messages in thread
From: Will Newton @ 2011-01-29 10:58 UTC (permalink / raw)
To: buildroot
On Sat, Jan 29, 2011 at 9:11 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
>> I wounder which utilities people use to test the embedded Linux builds using
>> the buildroot. ?It appears that the LTP perfectly works for non embedded
>> systems, while compiled using glibc.
>
> Yes, in its current state, LTP seems to work only with glibc. It would
> be great if there was an effort to adapt LTP to embedded systems: make
> it work with uClibc, and tune some constants to make the tests actually
> possible on typical ARM/PowerPC platforms (some tests have constants
> that have been defined for 2+Ghz machines with multiple GB of RAMs, and
> they spawn so many processes that the poor ARM platform just can't
> handle the load).
I have spent quite a lot of time over the years trying to get LTP
working on our embedded systems (uClibc, maybe 32MB of RAM) and it is
possible. We added a few command line options to reduce the memory
usage of tests, although it does involve writing your own test script
with those parameters tweaked.
However it does seem like the project is mostly funded and driven by
enterprise Linux companies so it's a constant battle keeping up to
date. I think we are stuck on a 2 year old version or something like
that and haven't managed to allocate enough resources to get the
recent versions running well.
It probably is something I will pick up again at some point in the
future though. Maybe it's worth suggesting as a CELF project...
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-01-29 10:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 2:34 [Buildroot] buildroot's support of ltp-testsuite David Fisher
2011-01-14 7:53 ` Thomas Petazzoni
[not found] ` <AANLkTik1WhgfrQtEjh6_TH2zn5sQMbs_7ixFPPOpghVR@mail.gmail.com>
2011-01-24 14:31 ` Thomas Petazzoni
2011-01-26 4:02 ` David Fisher
2011-01-29 9:11 ` Thomas Petazzoni
2011-01-29 10:58 ` Will Newton
-- strict thread matches above, loose matches on Subject: below --
2011-01-14 3:26 David Fisher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox