How to use the TCL script to test the C language function on the embedded system? -


i want test c language function on embedded system. topology is:
pc -------(console or telnet)------ embedded system.

the testing script running on pc, , call c language function on embedded system. want use tcl script test it. see solution: embed tcl interpreter embedded system run-time.

the test steps:

  1. pc send tcl script embedded system.

  2. the tcl interpreter embed in embedded system parse tcl script , run call c language function.

q1: feasible solution?

q2: there other possible solution (must run tcl script on pc)?

q3: need embed swig on embedded system run-time?

thanks.

like many situations, choice of partition things between processors depends upon many factors. because system embedded in nature not mean embedded computer not powerful. have done suggest, running tcl interpreter on embedded system , using drive testing of embedded application. long time ago, in tcl 7.x days. current tcl interpreter quite large embedded computer standards (although quite small conventional computer standards). might want consider jim tcl obtain smaller footprint. donal suggests, need small means in embedded system map string send (presumably tcl script running on "pc") invoke function , return string indicating result. technique use in embedded systems now, smaller , easier implement porting tcl embedded environment. arrangement still gives considerable power, since can use things such tcltest drive test case, sending command string embedded system, obtaining result embedded system , comparing obtained result expected one. front design, code in embedded system maps strings function invocations , returns result can automatically generated textual interface specification (a la swig-like concept simpler) ease task of adding more testable function interfaces in embedded system. strategy use since embedded system computers small microcontrollers less 64k of memory. on time can build powerful testing infrastructure.


Popular posts from this blog