function assert has program
- assert_has_program <program_name>
If this function is successful, it sets an environment variable with the path to the program. The variable name is the program name, in upper case, prefixed with the string 'PROGRAM_'.
For example, if the following call were made:
and ls was found on the target board in the PATH (specifically, at /bin/ls), then assert_has_program would return success (0), and would set the shell environment variable PROGRAM_LS with the value '/bin/ls'.
If found, the environment variable PROGRAM_ATQ will be set, with the path on the target board where 'atq' is found.
If found, the environment variable PROGRAM_EXPECT will be set, with the path on the target board where 'expect' is found.
- $1 - the filename of the program to check for the presence of
PROGRAM_<prog_name> is set to the path on the target board where the program is found.