Hello!
After some meditation I've realized that creating new plug-in for runtime
simulation
is much easier task that modifying on of existing plug-ins.
So behold the Test Agent plug-in (in trunk)!
Current version allows to work (create/delete/modify) with resources,
controls and sensors.
The plug-in has configuration console on TCP port.
Port number is configured in openhpi.conf - see openhpi.conf.example file.
Telnet or netcat are the best tools to work with the console.
Command syntax should be not difficult. At least "help" and "quit" command
is supported. :)
Command "new <entitypath>" creates resource.
Command "new sen-42" creates sensor with number 42.
Command "cd <target>" enters to the resource or to the instrument context.
And so on.
Events can be generated by changing resource hot swap state,
enabling/disabling sensor,
changing sensor reading or event states.
The example command set you can see in test_agent.data.example file.
With these command set I created setup and run hpib-test.
The results were:
Passed Test Cases: 519
Blocked Test Cases: 0
Failed Test Cases: 7
Errored Test Cases: 0
Not Supported Test Cases: 183
Unknown Test Cases: 1
Total Executed Test Cases: 710
Total test cases: 719
Anton Pak
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel