1 # Ensure we have our mocked out AUTOENV_ENV_FILENAME
4 [[ $AUTOENV_ENV_FILENAME[0,4] == '/tmp' ]] || return 1
6 # Inject timeout for `read` while running tests.
7 _AUTOENV_TEST_READ_ARGS='-t 1'
9 test_autoenv_add_to_env() {
10 _autoenv_hash_pair $1 $2 >> $AUTOENV_ENV_FILENAME
13 # Add enter and leave env files to authentication file.
14 test_autoenv_auth_env_files() {
15 echo -n > $AUTOENV_ENV_FILENAME
16 test_autoenv_add_to_env $PWD/$AUTOENV_FILE_ENTER
17 test_autoenv_add_to_env $PWD/$AUTOENV_FILE_LEAVE