1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-22 07:20:59 +02:00
zsh-autoenv/tests
Rob Speed dfb5648505 Automatically upgrade v1 hashes (SHA-1) to v2 (cksum) (#55)
A new parameter is added to `_autoenv_hash_pair` to specify the version, defaulting to the latest (2). It outputs a `cksum`-based hash for version 2 and `shasum`-based for version 1.
Moves logic to check for an entry in `$AUTOENV_AUTH_FILE` into its own function (`_autoenv_authorized_pair`), as it may need to be called twice.
Modifies `_autoenv_authorized_env_file` to check for v1 entries when v2 fails.

Fixes #53. Alternative implementation to #54.
2017-01-10 12:07:39 +01:00
..
ZDOTDIR tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.clobber tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.invalid-module_path tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.loadviafunction tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup 2015-04-24 17:33:09 +02:00
ZDOTDIR.shwordsplit Add tests/ZDOTDIR.shwordsplit 2015-11-18 19:25:07 +01:00
_autoenv_stack.t tests: rename setup.sh to setup.zsh 2015-04-23 16:03:21 +02:00
_autoenv_utils.t Automatically upgrade v1 hashes (SHA-1) to v2 (cksum) (#55) 2017-01-10 12:07:39 +01:00
autoenv.t Change default values: .env => .autoenv.zsh etc 2015-05-22 17:20:06 +02:00
cwd.t Change default values: .env => .autoenv.zsh etc 2015-05-22 17:20:06 +02:00
leave.t Cleanup API/vars for enter/leave events 2015-10-09 22:04:55 +02:00
recurse-upwards.t Change default values: .env => .autoenv.zsh etc 2015-05-22 17:20:06 +02:00
setup.zsh Automatically upgrade v1 hashes (SHA-1) to v2 (cksum) (#55) 2017-01-10 12:07:39 +01:00
source-parent-until.t Allow to limit autoenv_source_parent's upward recursion 2015-10-09 22:16:07 +02:00
source-parent-vars.t Cleanup API/vars for enter/leave events 2015-10-09 22:04:55 +02:00
upgrade_hash.t Automatically upgrade v1 hashes (SHA-1) to v2 (cksum) (#55) 2017-01-10 12:07:39 +01:00
varstash_export.t Cleanup tests/varstash_export.t 2015-04-23 17:57:56 +02:00
varstash-alias.t Add a test for autostashing aliases (#44) 2016-11-29 21:46:50 +07:00
varstash.t Only source varstash lib if it's being used 2016-04-28 20:44:05 +02:00