Subrata,
On Fri, Oct 17, 2008 at 02:55:58PM +0530, Subrata Modak wrote:
> I want the LTP test cases to remain as general as they can be. Let the
> ways to run the test cases be modified either during build/install time,
> or during run time, or both. This can be achieved by creating
> directories say:
>
> ltp/archs/,
> ltp/archs/arm/
> ltp/archs/sh/
> ltp/archs/*
>
> and then create some patch files like:
>
> ltp/archs/arm/during-build.patch
> ltp/archs/arm/during-run.patch
>
> 1) If the test cases need to be built with different
> parameters/identifiers/variables/ifdefs, for a particular architecture,
> then let ltp/Makefile detect that and apply say
> ltp/archs/*/during-build.patch before it starts to build. So, we get
> binaries built and suited to run for that architecture.
>
> 2) If the test cases need to be run with different parameters, then let
> the ltp/runltp detect that particular architecture and apply
> ltp/archs/*/during-run.patch on ltp/runtest/* command files and then run
> the tests.
>
> With these we will be able to retain the generalization of the tests and
> also run specific instances of tests depending on the architecture,
> memory, FS size requirements.
>
> What i would require is somebody should send me regular patches to
> update the ltp/arch/*/*.patch for their particular architectures. So you
> think that this is a feasible IDEA ?
Please, don't do this. These issues are usually *not* per architecture,
or not *only* per architecture. What if you have for example a tiny
arm7tdmi with 50 MHz and little RAM, vs a arm1126 with almost PC style
hardware. They don't have too much in common.
Embedded systems are usually tested remotely, so there may not even be a
'patch' command be available on the box.
If you really want to go platform specific, please start with
re-structuring the whole LTP with the kernel infrastructure. Something
like
export ARCH=arm
export CROSS_COMPILE=arm-v4t-linux-gnueabi-
make foobar_defconfig
make
plus Kconfig+kbuild and a structure similar to what the kernel has.
I fear that if you start inventing somethign new, it will end up in a
maintenance nightmare.
rsc
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list