removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
54
.antidote/tests/test_zcompile_bundle.md
Normal file
54
.antidote/tests/test_zcompile_bundle.md
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# antidote load tests
|
||||
|
||||
## Setup
|
||||
|
||||
```zsh
|
||||
% source ./tests/_setup.zsh
|
||||
% source ./antidote.zsh
|
||||
%
|
||||
```
|
||||
|
||||
### General
|
||||
|
||||
Ensure a compiled file does not exist:
|
||||
|
||||
```zsh
|
||||
% zstyle ':antidote:bundle:*' zcompile 'no'
|
||||
% ! test -e $ZDOTDIR/custom/lib/lib1.zsh.zwc #=> --exit 0
|
||||
% antidote bundle $ZDOTDIR/custom/lib/lib1.zsh | subenv ZDOTDIR
|
||||
source $ZDOTDIR/custom/lib/lib1.zsh
|
||||
% ! test -e $ZDOTDIR/custom/lib/lib1.zsh.zwc #=> --exit 0
|
||||
% antidote bundle $ZDOTDIR/custom/plugins/mytheme | subenv ZDOTDIR
|
||||
fpath+=( $ZDOTDIR/custom/plugins/mytheme )
|
||||
source $ZDOTDIR/custom/plugins/mytheme/mytheme.zsh-theme
|
||||
% ! test -e $ZDOTDIR/custom/plugins/mytheme/mytheme.zsh-theme.zwc #=> --exit 0
|
||||
%
|
||||
```
|
||||
|
||||
Ensure a compiled file exists:
|
||||
|
||||
```zsh
|
||||
% zstyle ':antidote:bundle:*' zcompile 'yes'
|
||||
% ! test -e $ZDOTDIR/custom/lib/lib2.zsh.zwc #=> --exit 0
|
||||
% antidote bundle $ZDOTDIR/custom/lib/lib2.zsh | subenv ZDOTDIR
|
||||
source $ZDOTDIR/custom/lib/lib2.zsh
|
||||
% test -e $ZDOTDIR/custom/lib/lib2.zsh.zwc #=> --exit 0
|
||||
% # plugin
|
||||
% antidote bundle $ZDOTDIR/custom/plugins/myplugin | subenv ZDOTDIR
|
||||
fpath+=( $ZDOTDIR/custom/plugins/myplugin )
|
||||
source $ZDOTDIR/custom/plugins/myplugin/myplugin.plugin.zsh
|
||||
% test -e $ZDOTDIR/custom/plugins/myplugin/myplugin.plugin.zsh.zwc #=> --exit 0
|
||||
% # zsh-theme
|
||||
% antidote bundle $ZDOTDIR/custom/plugins/mytheme | subenv ZDOTDIR
|
||||
fpath+=( $ZDOTDIR/custom/plugins/mytheme )
|
||||
source $ZDOTDIR/custom/plugins/mytheme/mytheme.zsh-theme
|
||||
% test -e $ZDOTDIR/custom/plugins/mytheme/mytheme.zsh-theme.zwc #=> --exit 0
|
||||
%
|
||||
```
|
||||
|
||||
## Teardown
|
||||
|
||||
```zsh
|
||||
% t_teardown
|
||||
%
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue