AnsweredAssumed Answered

TCL Script execution on CodeWarrior

Question asked by Prathibha Narasimha Iyengar on Apr 21, 2009
Latest reply on Apr 27, 2009 by Prathibha Narasimha Iyengar
We are working on an Embedded system designed with a MC56F8335 as the core processor. The software for the system is built using the Metrowerks CodeWarrior IDE (Version - 5.6.1.1658). The need of the project is to automate the testing of this software through scripts.The information gathered so far is that one of the scripting support available on this IDE is TCL scripting. We have referred to CodeWarrior™Development Tools IDE 5.5/5.7 Automation Guide.
Actions and Observations:
1.The Metrowerks commands were executed in the command window and results observed. (debug,bp commands).
2.These commands were ported to a text file,saved as a .tcl file.
3.cmdIDE.exe /d scriptname.tcl executed. The IDE hangs.
4.Executed by setting a Script point. The .tcl file is opened but no command executed.
5.Tried executing the script file through the 'source scriptname.tcl'command in the command window. There was an error message output.
Clarifications:
1.How should we have the commands in the .tcl file executed?
2.As mentioned in the reference pdf, there was no 'tcld.tcl' file which needs to get executed at start up? It is mentioned to be available at %SystemRoot% directory.
3. Is there any additional software that needs to be installed for the script execution?
4.Is it possible to provide 'values to variables' to be passed to the functions in the software through the script?
5.Can the script consist only of the Metrowerks commands?
Eg: below is a sample script:
debug C:\Project\Project.mcp
bp Function1
bp Function1 off
go

Looking forward to your quick response and support.
Thanks,
Prathibha

Outcomes