#******************************************************************************* # ALMA - Atacama Large Millimiter Array # (c) Associated Universities Inc., 2002 # (c) European Southern Observatory, 2002 # Copyright by ESO (in the framework of the ALMA collaboration) # and Cosylab 2002, All rights reserved # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # # "@(#) $Id: TestList.lite,v 1.42 2008/11/13 01:57:44 cparedes Exp $" # # TestList # # who when what # -------- -------- ---------------------------------------------- # david 2002-04-15 created SOURCE acsncTATEnvironment PROLOGUE acsutilTATPrologue #Test a consumer when the channel hasn't been created yet... 0 ChannelNonexistant "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" "acsutilTATTestRunner acsncTATRunTest.sh acsncTestConSup CON1 SUP1" #Test a consumer connecting to an already existing channel 1 ChannelCreated "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" "acsutilTATTestRunner acsncTATRunTest.sh acsncTestConSup CON1 SUP1" #Test the publishing capability of a real-time supplier 2 RTSupplier "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" "acsutilTATTestRunner acsncTATRunTest.sh acsncTestConSup CON1 RTSUP1" 3 ArchiveConsumer "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" "acsutilTATTestRunner acsStartContainer -cpp archiveContainer" "@SLEEP 15" "acsutilTATTestRunner acsncTATRunTest.sh acsncTestConSup ARCHIVECON1" 4 IntegrationLogs "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" "acsutilTATTestRunner acsncTATRunTest.sh acsncTestConSup IL_CON1 IL_SUP1" 5 ChannelCreator "acsutilTATTestRunner testChannelCreation" 6 testNotificationServiceConfiguration "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" "acsutilTATTestRunner acsncTATRunTest.sh acsncTestSimpleComponent CDB_PROPS" # Check that after creating new channel, the tool acsncDelChannelsInNameS is able to remove the channel's entry in the Naming Service # At this point there are different channels in all Notify Services except the named ones so it creates a named Notify Service and one channel in it. # Finally, it deletes all channels in the following Notify Services: # - Default Notify Service # - Logging Notify Service # - Archive Notify Service # - Alarm Notify Service # - NamedCh Notify Service 7 DeleteChannelsInNS "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 5" \ "acsutilTATTestRunner acsncTATRunTest.sh acsncTestConSup NamedCh_CON1 NamedCh_SUP1" "@SLEEP 15" \ "acsutilTATTestRunner acsncNslist.sh" "@SLEEP 2" \ "acsutilTATTestRunner acsncExecDelChannelsNS.sh \"\"" "@SLEEP 2" \ "acsutilTATTestRunner acsncExecDelChannelsNS.sh Logging" "@SLEEP 2" \ "acsutilTATTestRunner acsncExecDelChannelsNS.sh Archive" "@SLEEP 2" \ "acsutilTATTestRunner acsncExecDelChannelsNS.sh Alarm" "@SLEEP 2" \ "acsutilTATTestRunner acsncExecDelChannelsNS.sh NamedCh" "@SLEEP 2" \ "acsutilTATTestRunner acsncNslist.sh" "@SLEEP 1" \ "acsutilTATTestRunner acsStopContainer bilboContainer" "@SLEEP 20" \ "acsutilTATTestRunner acsncKillNamedNotifyS.sh NamedCh" # Supplier with autoreconnect ON and Notify Channel is restarted #8 SupplierAutoreconnectNCRestart "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncTestSupReconn 1" "@SLEEP 8" \ # "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 60" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" "@SLEEP 8" # ## Supplier with autoreconnect OFF and Notify Channel is restarted #9 SupplierNoAutoreconnectNCRestart "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncTestSupReconn 2" "@SLEEP 10" \ # "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 30" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" "@SLEEP 8" # ## Supplier with autoreconnect ON and Notify Channel stopped #10 SupplierAutoreconnectNCStopped "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncTestSupReconn 3" "@SLEEP 8" \ # "acsutilTATTestRunner acsncKillNamedNotifyS.sh NamedCh" "@SLEEP 60" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" "@SLEEP 8" # ## Supplier with autoreconnect OFF and Notify Channel stopped #11 SupplierNoAutoreconnectNCStopped "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncTestSupReconn 4" "@SLEEP 10" \ # "acsutilTATTestRunner acsncKillNamedNotifyS.sh NamedCh" "@SLEEP 30" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" "@SLEEP 8" # ## Supplier and consumer with autoreconnect ON and Notify Channel restarted #12 SupConAutoreconnectNCRestart "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncRunConComp 1 CON_COMP_1 NamedCh autoreconnect 40 0 2000" "@SLEEP 2" \ # "acsutilTATTestRunner acsncRunSupComp SUP_COMP_1 NamedCh autoreconnect 30 100 1" "@SLEEP 10" \ # "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 34" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" # ## Supplier with autoreconnect ON, consumer with autoreconnect OFF and Notify Channel restarted #13 SupRecConNoRecNCRestart "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncRunConComp 1 CON_COMP_1 NamedCh no-autoreconnect 40 2000 0" "@SLEEP 2" \ # "acsutilTATTestRunner acsncRunSupComp SUP_COMP_1 NamedCh autoreconnect 30 100 1" "@SLEEP 10" \ # "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 34" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" # ## Supplier and consumer with autoreconnect ON and Notify Channel restarted while consumer is suspended #14 SOURCE acsncTATDecreaseLogLevel SupConAutoreconnectNCRestartSusp "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ # "acsutilTATTestRunner acsncRunConComp 2 CON_COMP_1 NamedCh" "@SLEEP 2" \ # "acsutilTATTestRunner acsncRunSupComp SUP_COMP_1 NamedCh autoreconnect 30 100 1" "@SLEEP 8" \ # "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 30" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" # # ## Supplier and consumer with autoreconnect ON and Notify Channel restarted #15 SOURCE acsncTATIncreaseLogLevel SupMConAutoreconnectNCRestart "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ # "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 20" \ # "acsutilTATTestRunner acsncRunMConComp NamedCh autoreconnect 45 0 2000 6" "@SLEEP 12" \ # "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 50" \ # "acsutilTATTestRunner acsStopContainer bilboContainer" # Supplier publishing events from 6 different threads 16 MultiThreadSupplier "acsutilTATTestRunner acsncCreateNamedNotifyS.sh NamedCh" "@SLEEP 3" \ "acsutilTATTestRunner acsStartContainer -cpp bilboContainer" "@SLEEP 15" \ "acsutilTATTestRunner acsncTestMThSup" "@SLEEP 25" \ "acsutilTATTestRunner acsStopContainer bilboContainer" "@SLEEP 8" EPILOGUE acsutilTATEpilogue