You will invite monotonous job if you replace the 2nd field with "simulatorname <binary>" on every line of say runtest/syscalls. Instead you can twik the pan's code base. You might need to change something in "get_collection()" function in "/testcases/pan/pan.c" after line no. 1073:
..................................
char *temp;
strcpy(temp,n->cmdline);
strcpy(n->cmdline,"simulatorname "); //Make sure that a space exists after simulatorname strcat(n->cmdline,temp);
...................................
Build pan once again. The above will make sure that all your binaries are run like "simulatorname <binary>".
Hope this solves your problem.

Regards--
Subrata

Namitha Patil wrote:

Yes. Thx a lot for the  info.

I ma running on simulator so I think I need to modify the script or pan code inorder to run executables/bin.

Eg:- now in bin directory if I give "gepid01" on shell command prompt it executes

But with simulator  I  need  to  give "simulatorname getpid01" on shell.

So in order to add interface to simulator exe I think I need to add in pan code base.

Is there anyway I can add this in testcase file itself eg:- runtest/syscalls file?

Thanks,

Namitha

------------------------------------------------------------------------

*From:* Subrata Modak [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, August 08, 2007 10:36 AM
*To:* Namitha Patil
*Cc:* [email protected]
*Subject:* Re: [LTP] Query on ltp testcase excution

You are hitting the correct button. "runltp" is a script wrapper over PAN. It is the PAN which actually execute(s) the testcase(s) and communicates with the testcase(s) for logging info also. If you pass more than one "cmdfile" through "runltp", their contents actually get appended to a single file and then passed on to PAN for execution. Only thing that you need to make sure is the fact that all you testcase binaries mentioned in your "cmdfile"(s) should be residing under "ltp<>/testcases/bin/" [And this will be taken care when you do "make install"]. Hope this clarifies your doubt.
Regards--
Subrata

Namitha Patil wrote:

Hi,

Which  line  in runltp script  actual  command  execution  happens?

Is  it the  below  line?

 ${LTPROOT}/pan/pan $QUIET_MODE -e -S $INSTANCES $DURATION -a $$ \

410 -n $$ $PRETTY_PRT -f ${TMP}/alltests $LOGFILE $OUTPUTFILE $FAILCMDFILE

411

Does it mean we take alltests under runtest directory or cmdfile gets executed through pan interface?

Looking forward for  your  inputs.

Regards,

Namitha

*DISCLAIMER:*

This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.

E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.

Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.

MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.


------------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

------------------------------------------------------------------------


_______________________________________________
Ltp-list mailing list
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/ltp-list
*DISCLAIMER:*

This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.

E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.

Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.

MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to