Skip to contentSkip to conversation

Dead End with LTP Options

LTP Subrata Modak 4 participants 4 messages Aug 18, 2009 – Aug 19, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

We are about to hit the dead end for LTP options with increasing no. of options being added to 'runltp' with each passing day. And even with line items i have for ltp in 2009 alone, it will easily add up to 3-4 options.

Now, this will become a mess in future:

1. "./runltp -h" will scroll up and will not show on a single screen,
2. It will be difficult for users to remember all options and their usage as no. of options increase manifold, which is already too much.

While there is no doubt that we will keep adding more punch to ltp and the way it provisions tests in future, so, the time has come for us to adhere to a simpler process which can be easily:

1. Used &
2. Maintained

I have no reservations of how it should be implemented, so, would like to hear from you on how it can be done best. I would like to see just the following command execute LTP as desired by the user:

./runltp

And the remaining choice of providing more options to 'runltp' hidden somewhere.

Regards--
Subrata

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 2 lines · On Tuesday 18 August 2009 05:07:11 Subrata Modak wrote:

We are about to hit the dead end for LTP options with increasing no. of options being added to 'runltp' with each passing day

so switch to longopts

Quoted 2 lines

1. "./runltp -h" will scroll up and will not show on a single screen,

it's already beyond 1 screen of text

Quoted 3 lines

2. It will be difficult for users to remember all options and their usage as no. of options increase manifold, which is already too much.

meh, --help exists for a reason

Quoted 3 lines

I have no reservations of how it should be implemented, so, would like to hear from you on how it can be done best. I would like to see just the following command execute LTP as desired by the user:

ive never used runltp and i probably wont start, so i dont really have any input here on its interface
-mike

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

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

#2 lore raw
In reply to Subrata Modak
Quoted 11 lines · Subrata Modak

Hi,

We are about to hit the dead end for LTP options with increasing no. of options being added to 'runltp' with each passing day. And even with line items i have for ltp in 2009 alone, it will easily add up to 3-4 options.

Now, this will become a mess in future:

1. "./runltp -h" will scroll up and will not show on a single screen,

I really don't see this as a problem, as I'd expect someone running the ltp to know how to |more....or |less. ;)

Quoted 3 lines

2. It will be difficult for users to remember all options and their usage as no. of options increase manifold, which is already too much.

Perhaps it's time to create a manpage?

Quoted 12 lines

While there is no doubt that we will keep adding more punch to ltp and the way it provisions tests in future, so, the time has come for us to adhere to a simpler process which can be easily:

1. Used &
2. Maintained

I have no reservations of how it should be implemented, so, would like to hear from you on how it can be done best. I would like to see just the following command execute LTP as desired by the user:

Quoted 9 lines

./runltp

And the remaining choice of providing more options to 'runltp' hidden somewhere.

Regards--
Subrata

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#3 lore raw
In reply to Subrata Modak
Quoted 6 lines

1. "./runltp -h" will scroll up and will not show on a single screen,
2. It will be difficult for users to remember all options and their usage as no. of options increase manifold, which is already too much.

Well many applications do that, and something that cannot be avoided, you could spend some time and remove least useful options if you want to trim the output a little.

I think your other option is to use /etc/bash_completion and create a CLI for
runltp. something like this:

./runltp option option option=value

for example:
./runltp <tab-tab> prints something like:
./runltp verbose prettyprint iostress ...<more options>... logfile=<enter filename>

./runltp ver<tab-tab> expands to ./runltp verbose

./runltp verbose lo<tab-tab> expands to ./runltp verbose logfile= and the user enters the filename.

etc. I think you get the drift.

So the user can build the command line on the fly and dont have to hit -h then remember options etc.

You could also write the entire CLI in perl which I think offers more flexibility to do command complition & CLI.

You can then parse those options & arguments do construct your command line for runltp.

Quoted 7 lines

to hear from you on how it can be done best. I would like to see just the following command execute LTP as desired by the user:

./runltp

And the remaining choice of providing more options to 'runltp' hidden somewhere.

have you polled to see what options consumers of LTP are using? my guess is they are just running with the options that the help command prints at the end.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list