1 # Ensure we have our mocked out AUTOENV_ENV_FILENAME
4 [[ $AUTOENV_ENV_FILENAME[0,4] == '/tmp' ]] || return 1
6 # Reset any authentication.
7 echo -n > $AUTOENV_ENV_FILENAME
9 # Add file $1 (with optional hash $2) to authentication file.
10 test_autoenv_add_to_env() {
11 _autoenv_hash_pair $1 $2 >> $AUTOENV_ENV_FILENAME
14 # Add enter and leave env files to authentication file.
15 test_autoenv_auth_env_files() {
16 test_autoenv_add_to_env $PWD/$AUTOENV_FILE_ENTER
17 test_autoenv_add_to_env $PWD/$AUTOENV_FILE_LEAVE