|
|||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Phone: +41 56 310 5109 Updated: 30.08.2007 Printer friendly version |
Testing the GENESYS PSU SoftwareIntroductionThis document describes how the GENESYS module is tested at PSI. It assumes that the test person understands EPICS and the SLS environment for software development and release. System RequirementsSoftwareThe operating system used for testing is required to run EPICS and the StreamDevice software.
HardwareNo specific hardware is required as the software is capable of being tested on VxWorks, Linux and RTEMS without a serial RS232/RS485 connection. Testing was done on a Cosylab MicroIOC with an extra 4 RS232 serial line card installed. A different version of the startup.script will be required if the testing is done under VxWorks. Configuration and SetupCheckout GENESYS from the CVS repository, change the name of the GENESYS.subs file to the name of the IOC in which this will be installed. In the example given the <IOC-NAME> is TEST-PC-1 ie TEST-PC-1_GENESYS.subs then edit this file to provide the correct value for the IOC macro parameter. This should be the name of the IOC in which this file will be installed.
Checkout SOFTMON from the CVS repository, change the name of the example.subs file to the name of the IOC in which this will be installed. ie TEST-PC-1_example.subs then edit this file to provide the correct value for the IOC macro parameter. This should be the name of the IOC which the EPICS database will be running on. Change the MODULE macro name from NEWPROJECT to GENESYS in this file.
Execute the following commands to check that the test PV,s have been created. In the <IOC-NAME>_GENESYS.db various records should have the field SIML set to <IOC-NAME>:GENESYS-TST Edit the startup.script file to correctly point to the protocols directory (STREAM_PROTOCOL_PATH) and the dbLoadDatabase command to point to the correct streamApp.dbd file. Use the slsinstall program to install the GENESYS software into the test IOC. TestingBootup the IOC which contains the EPICS GENESYS database. Check that the IOC booted correctly.
On the test computer start a terminal session and execute the command
tail -f /var/log/messages.
To check the medm GUI start the GUI with the command :-
To check the alarm handling start the alarm handler with the command :-
To aid in testing the test script can also show debugging output when the command is run as :-
Author: Dennis Armstrong Phone: +41 56 310 5109 Email: dennis.armstrong@psi.ch Updated: 30.08.2007 Source: /afs/psi.ch/project/epics/webhosting/software/streamdevice/genesys/GENESYS-testing.php |