Lines Matching refs:expect
87 # cti_runexpect() runs the expect utility. cti_expecttest() is
90 # cti_runexpect() runs the expect utility. cti_expecttest() is
651 # Exit values for expect scripts.
652 # N.B. Do not use 0, as expect uses this for e.g. syntax errors.
659 # cti_runexpect() - run the expect utility.
663 # Executes the expect utility using the command line specified in the second
664 # argument. Generates a temporary expect script which is removed at the end of
669 # The following expect functions are available:
677 # finish Exit the expect script here - the test has passed.
695 # Generate expect script.
731 echo 'expect {'
748 cti_unresolved "Error writing expect script to file" \
753 # If debug is on, turn on expect debug flag.
760 # Execute expect using generated script.
761 expect $cti_lv_dopt -f $cti_lv_expfile $cti_lv_command > cti_expout 2>&1
764 # If debug is on, save expect script and output, otherwise remove
769 cti_report "DEBUG: expect script is $PWD/$cti_lv_expfile," \
770 "expect output is in $PWD/${cti_lv_expfile%.exp}.out"
776 # Deal with return value from expect.
788 cti_unresolved "Test coding error or expect bug:" \
789 "unexpected exit status $cti_lv_rv from expect script"
790 cti_reportfile cti_expout "Output from expect"
798 # cti_expecttest() - run the expect utility.
802 # Common test function for test purposes which use expect. Like cti_runexpect()
811 # Use cti_runexpect() to execute expect utililty.