Skip to contentSkip to conversation

How to compile indiviual packages/modules in LTP

LTP Raju 3 participants 5 messages Dec 8, 2014 2 messages not in the archive

lore
Share & tools
lore

Raju

author
#0 lore raw

Hello Sir,

There are lot of test suit modules / packages currently under LTP.

Examples :

/ltp-full-20140828/testcases/commands/

ade at cpio cron eject fileutils gzip logrotate mail Makefile sssd su tar tpm-tools unzip

/ltp-full-20140828/testcases/kernel

connectors controllers firmware hotplug io lib Makefile mem
numa pty security timers

containers device-drivers fs include ipc logging mce-test
module power_management sched syscalls tracing

etc.

Currently we have option to compile the whole LTP package. But suppose I do not want some modules to get compiled Ex. Ade , gzip , security , timers etc , but compile the rest of the LTP test suit. How can I do it ?

I do not want to whole LTP to get compiled but compile only the selected test package. How can I select the packages to compile. It is just like we do not compile the complete kernel but compile what is required for our need. Similar to that how can we compile what we need and not the complete package.

Request help to compile selected package in LTP.

Regards,

Raju Biswas

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw

----- Original Message -----

Quoted 11 lines

From: "Raju" <[email protected]>
To: [email protected]
Sent: Monday, 8 December, 2014 9:42:20 AM
Subject: [LTP] How to compile indiviual packages/modules in LTP Hello Sir,
There are lot of test suit modules / packages currently under LTP. Examples :
/ltp-full-20140828/testcases/commands/
ade at cpio cron eject fileutils gzip logrotate mail Makefile sssd su tar tpm-tools unzip
/ltp-full-20140828/testcases/kernel

Quoted 8 lines

connectors controllers firmware hotplug io lib Makefile mem numa pty security timers
containers device-drivers fs include ipc logging mce-test module power_management sched syscalls tracing
etc.
Currently we have option to compile the whole LTP package. But suppose I do not want some modules to get compiled Ex. Ade , gzip , security , timers etc , but compile the rest of the LTP test suit. How can I do it ?

If none of configure options works for you, as outline by Cyril here:
http://thread.gmane.org/gmane.linux.ltp/21992

you need to make changes yourself. If specific Makefile doesn't name sub-directories by name, then delete the ones you don't want to compile from tree. If Makefile does list sub-directories by name, then you need to patch that Makefile and remove those you wish to skip.

Regards,
Jan

Quoted 10 lines

I do not want to whole LTP to get compiled but compile only the selected test package. How can I select the packages to compile. It is just like we do not compile the complete kernel but compile what is required for our need. Similar to that how can we compile what we need and not the complete package.
Request help to compile selected package in LTP.
Regards,
Raju Biswas
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server

Quoted 8 lines

from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#2 lore raw

Hi!

Quoted 7 lines

If none of configure options works for you, as outline by Cyril here:
http://thread.gmane.org/gmane.linux.ltp/21992

you need to make changes yourself. If specific Makefile doesn't name sub-directories by name, then delete the ones you don't want to compile from tree. If Makefile does list sub-directories by name, then you need to patch that Makefile and remove those you wish to skip.

And I have a feeling that you are trying to solve wrong problem. What exactly do you want to do?

If you want to run a subset of testcases you should compile and install all of them and then tell test driver to executed only these you are interested in.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hi!

Quoted 2 lines

When we compile the complete LTP and INSTALL in our target its more than 1 GB of the compiled output.

That is a bit strange. For me the result is less than two hundred megabytes, your result is nearly ten times greater. This looks like a bug in your compiler/binutils.

Quoted 4 lines

We do not have enough memory to copy all the LTP INSTALLED files and hence we want to compile only the selected test cases which we want to execute. That is why when I tried to explore options I was not able to find any which will do that. Hence need help on how can we do that ?

If your target has network interface you can use nfs to share the LTP binary directory over the network.

Quoted 5 lines
Suppose we have "ade  at  cpio  cron  eject  fileutils  gzip  logrotate
mail  Makefile  sssd  su  tar  tpm-tools  unzip" commands in the

/ltp-full-20140828/testcases/commands/ dir. We need to compile only ade , gzip , tar , unzip for our purpose and not compile the complete command folder. Hence we need help on how to compile the selected package.

I've allready explained how to do that by hand. There is no other way to do that.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Hi!

Quoted 11 lines

But I do not want to execute all the test cases under commands list. I want to know is there any option so that we can run selected commands. We can give this option from the shell prompt.

Example we want to run suppose ar, ld , ldd only commands and not execute all the commands.

How can we execute selected commands ?

Similar way for other modules under different directory kernel , lib , network etc.

The easiest solution is to do a copy of the runtest file and edit it by hand to fit your needs.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list