1 # Ensure we have our mocked out AUTOENV_ENV_FILENAME
4 # Treat unset variables as errors.
5 # Not handled in varstash yet.
8 [[ $AUTOENV_ENV_FILENAME[0,4] == '/tmp' ]] || return 1
10 # Reset any authentication.
11 echo -n >| $AUTOENV_ENV_FILENAME
13 # Add file $1 (with optional hash $2) to authentication file.
14 test_autoenv_add_to_env() {
15 _autoenv_hash_pair $1 ${2:-} >>| $AUTOENV_ENV_FILENAME
18 # Add enter and leave env files to authentication file.
19 test_autoenv_auth_env_files() {
20 test_autoenv_add_to_env $PWD/$AUTOENV_FILE_ENTER
21 test_autoenv_add_to_env $PWD/$AUTOENV_FILE_LEAVE