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:
15
tests/_autoenv_utils.t
Normal file
15
tests/_autoenv_utils.t
Normal 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)
|
||||
Reference in New Issue
Block a user