1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2025-12-18 03:55:13 +02:00

Some more refactoring, adding support for autoenv_source_parent

- use file mtime with "entered" stack
 - fix loading of varstash; look at $functions
 - Refactor stack handling, add tests
 - Refactor `_autoenv_get_file_upwards`, add tests
 - tests: setup: reset AUTOENV_ENV_FILENAME
This commit is contained in:
Daniel Hahler
2014-11-24 17:48:51 +01:00
parent bcec00d2dd
commit d9ff71ac1d
6 changed files with 326 additions and 32 deletions

15
tests/_autoenv_utils.t Normal file
View File

@@ -0,0 +1,15 @@
Tests for internal util methods.
$ source $TESTDIR/setup.sh
Non-existing entries are allowed and handled without error.
$ mkdir -p sub/sub2
$ touch file sub/file sub/sub2/file
Should not get the file from the current dir.
$ _autoenv_get_file_upwards . file
$ cd sub/sub2
$ _autoenv_get_file_upwards . file
*/_autoenv_utils.t/sub/file (glob)