#******************************************************************************* # ALMA - Atacama Large Millimiter Array # (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.21 2009/10/02 19:10:02 agrimstrup Exp $" # # TestList # # who when what # -------- -------- ---------------------------------------------- # bjeram 2001-08-22 created SOURCE acsutilTATEnvironment ################################################################## # GCH 2005-10-04 # No need to have Prologue and Epilogue # for the tests listed until now hereafter # Therefore they are commented out. # If we would like to test acsutilTATPrologue and # acsutilTATEpilogue themselves, we would introduce a forward # dependency, because these scripts will inwoque acsStart/Stop. # Therefore we do not thest them here and we will leave the test # to be done indirectly and implicitly by later modules using them. ################################################################## # PROLOGUE acsutilTATPrologue 1 testLLU testLLU 2 testTmp testTmp 3 testFindFile "testFindFile include/acsutil.h" 4 testFindFileErr "testFindFile idl/DoesNotExist.idl" 5 testAnyAide "testAnyAide" # acsutilBlock Launching process that disappears immediately with the expected string 7 testacsutilBlock1 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock1_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -f /tmp/testacsutilBlock1_$::env(USER)_$::env(ACS_INSTANCE).out -s -c \"ERROR\" -b \"SUCCESS\" echo -e \"SUCCESS\"" \ "@SLEEP 3" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock1_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that disappears immediately with the expected error string 8 testacsutilBlock2 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock2_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -f /tmp/testacsutilBlock2_$::env(USER)_$::env(ACS_INSTANCE).out -s -c \"ERROR\" -b \"SUCCESS\" echo -e \"ERROR\"" \ "@SLEEP 3" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock2_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that disappears immediately without the expected string and without the expected error string 9 testacsutilBlock3 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock3_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -f /tmp/testacsutilBlock3_$::env(USER)_$::env(ACS_INSTANCE).out -s -k -c \"ERROR\" -b \"SUCCESS\" echo -e \"DUMMY\"" \ "@SLEEP 30" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock3_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected string after 10 seconds 10 testacsutilBlock4 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock4_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -f /tmp/testacsutilBlock4_$::env(USER)_$::env(ACS_INSTANCE).out -s -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"SUCCESS\" -s 10" \ "@SLEEP 12" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock4_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected error string after 10 seconds 11 testacsutilBlock5 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock5_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -f /tmp/testacsutilBlock5_$::env(USER)_$::env(ACS_INSTANCE).out -s -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"ERROR\" -s 10" \ "@SLEEP 12" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock5_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected string after 5 seconds but with acsUtilBlock timeout set to 2 seconds, using acsutilBlock -s option 12 testacsutilBlock6 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock6_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock6_$::env(USER)_$::env(ACS_INSTANCE).out -s -k -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"SUCCESS\" -s 5" \ "@SLEEP 6" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock6_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected error string after 5 seconds but with acsUtilBlock timeout set to 2 seconds, using acsutilBlock -s option 13 testacsutilBlock7 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock7_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock7_$::env(USER)_$::env(ACS_INSTANCE).out -s -k -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"ERROR\" -s 5" \ "@SLEEP 6" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock7_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected string after 3 seconds but with acsUtilBlock timeout set to 2 seconds, not using acsutilBlock -s option 14 testacsutilBlock8 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock8_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock8_$::env(USER)_$::env(ACS_INSTANCE).out -k -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"SUCCESS\" -s 3" \ "@SLEEP 5" \ "/bin/cat /tmp/testacsutilBlock8_$::env(USER)_$::env(ACS_INSTANCE).out" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock8_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected error string after 3 seconds but with acsUtilBlock timeout set to 2 seconds, not using acsutilBlock -s option 15 testacsutilBlock9 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock9_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock9_$::env(USER)_$::env(ACS_INSTANCE).out -k -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"ERROR\" -s 3" \ "@SLEEP 5" \ "/bin/cat /tmp/testacsutilBlock9_$::env(USER)_$::env(ACS_INSTANCE).out" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock9_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected string after 4 seconds but with acsUtilBlock timeout set to 2 seconds, not using acsutilBlock -s option 16 testacsutilBlock10 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock10_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock10_$::env(USER)_$::env(ACS_INSTANCE).out -k -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"SUCCESS\" -s 4" \ "@SLEEP 5" \ "/bin/cat /tmp/testacsutilBlock10_$::env(USER)_$::env(ACS_INSTANCE).out" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock10_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected error string after 4 seconds but with acsUtilBlock timeout set to 2 seconds, not using acsutilBlock -s option 17 testacsutilBlock11 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock11_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock11_$::env(USER)_$::env(ACS_INSTANCE).out -k -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"ERROR\" -s 4" \ "@SLEEP 5" \ "/bin/cat /tmp/testacsutilBlock11_$::env(USER)_$::env(ACS_INSTANCE).out" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock11_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected string after 6 seconds but with acsUtilBlock timeout set to 2 seconds, not using acsutilBlock -s and -k options 18 testacsutilBlock12 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock12_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock12_$::env(USER)_$::env(ACS_INSTANCE).out -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"SUCCESS\" -s 6" \ "@SLEEP 7" \ "/bin/cat /tmp/testacsutilBlock12_$::env(USER)_$::env(ACS_INSTANCE).out" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock12_$::env(USER)_$::env(ACS_INSTANCE).*\"" # acsutilBlock Launching process that will print the expected error string after 6 seconds but with acsUtilBlock timeout set to 2 seconds, not using acsutilBlock -s and -k options 19 testacsutilBlock13 "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock13_$::env(USER)_$::env(ACS_INSTANCE).*\"" \ "../bin/acsutilBlock -t 2 -f /tmp/testacsutilBlock13_$::env(USER)_$::env(ACS_INSTANCE).out -c \"ERROR\" -b \"SUCCESS\" ../bin/testacsutilBlock -d \"DUMMY\" -e \"ERROR\" -s 6" \ "@SLEEP 7" \ "/bin/cat /tmp/testacsutilBlock13_$::env(USER)_$::env(ACS_INSTANCE).out" \ "/bin/sh -c \"/bin/rm -f /tmp/testacsutilBlock13_$::env(USER)_$::env(ACS_INSTANCE).*\"" # Test ORBHelper::set and ORBHelper::isORBSet 20 testORBSet "testORBSet" # EPILOGUE acsutilTATEpilogue #___o0o___