removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
44
.antidote/tests/test_zcompile_static.md
Normal file
44
.antidote/tests/test_zcompile_static.md
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# antidote load tests
|
||||
|
||||
## Setup
|
||||
|
||||
```zsh
|
||||
% source ./tests/_setup.zsh
|
||||
% source ./antidote.zsh
|
||||
%
|
||||
```
|
||||
|
||||
### General
|
||||
|
||||
Ensure a compiled file exists:
|
||||
|
||||
```zsh
|
||||
% zstyle ':antidote:static' zcompile 'yes'
|
||||
% zstyle ':antidote:static' file $ZDOTDIR/.zplugins_fake_zcompile_static.zsh
|
||||
% ! test -e $ZDOTDIR/.zplugins_fake_zcompile_static.zsh.zwc #=> --exit 0
|
||||
% antidote load $ZDOTDIR/.zplugins_fake_load >/dev/null
|
||||
% cat $ZDOTDIR/.zplugins_fake_zcompile_static.zsh | subenv #=> --file testdata/.zplugins_fake_zcompile_static.zsh
|
||||
% test -e $ZDOTDIR/.zplugins_fake_zcompile_static.zsh.zwc #=> --exit 0
|
||||
% t_reset
|
||||
%
|
||||
```
|
||||
|
||||
Ensure a compiled file does not exist:
|
||||
|
||||
```zsh
|
||||
% zstyle ':antidote:static' zcompile 'no'
|
||||
% zstyle ':antidote:static' file $ZDOTDIR/.zplugins_fake_load.zsh
|
||||
% ! test -e $ZDOTDIR/.zplugins_fake_load.zsh.zwc #=> --exit 0
|
||||
% antidote load $ZDOTDIR/.zplugins_fake_load >/dev/null
|
||||
% cat $ZDOTDIR/.zplugins_fake_load.zsh | subenv #=> --file testdata/.zplugins_fake_load.zsh
|
||||
% ! test -e $ZDOTDIR/.zplugins_fake_load.zsh.zwc #=> --exit 0
|
||||
% t_reset
|
||||
%
|
||||
```
|
||||
|
||||
## Teardown
|
||||
|
||||
```zsh
|
||||
% t_teardown
|
||||
%
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue