# Test Data File for Command Line tests. # # Each test is a one-line entry of the form: # # |||| # # Where: # is the Perforce command to execute. If it starts with 'p4 ', the # 'p4 ' wll be substituted at runtime with 'p4 -p -u -c ', # where the port/user/client values are dependint test configuration data in # test_sdp.*.cfg files. # # Alternately, the can start with 'p4:user:client ', to execute # commands as a user or in a workspace defined in the test entry. The user # is typically 'bruno' or some other user from the Perforce Sample Depot data set. # # If the does not start with 'p4 ' or 'p4:user:client ', it is deemed # to be an arbitrary command and it is executed as is. # # is the expected exit code, which must be a whole number (integer 0 or # greater). If the actual test exist code is not match, the test is deemed to have # failed. A special value of 'U' meaning Undefined can be supplied rather than a # whole number to indicate that any exit code is accepted. (The test may still fail # depending on the # # Specify the absolute path to the log containing the expected string, # or the special value 'output' to scan the output of the command rather than # a log file. # # is a string of text expected of the executed command in # either the ouptutor a given logfile. The string can be a regular expression. # # are short comments for the human reviewer of the test, describing what # is expected in the output, what is being tested, etc. #------------------------------------------------------------------------------ # Setup and basic tests of usage massage and early abort. TrueFalse|true|0|output||True TrueFalse|false|1|output||False Echo|echo hello|0|output|hello|Hello Echo|echo $RANDOM|U|output||Random TrueFalse|false|N|output||False NonZero Echo|echo Goodbye > /tmp/Goodbye.log|0|/tmp/Goodbye.log|Goodbye|Check log content. ###BOOM|true|N|output||True NonZero - This test will fail. BOOM|false|N|output||False NonZero - This test will pass.