forked from jakobwesthoff/vim-plugin-dirsettings
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added proper test environment and fixed tests
- Loading branch information
1 parent
e20a298
commit 8a6a412
Showing
8 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
let g:dirsettingsOverwriteTest="level1" | ||
let g:dirsettingsLevel1="level1 loaded" | ||
|
||
let g:dirsettingsVimRcVariable="set-by-level1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
source ../../autoload/dirsettings.vim | ||
call dirsettings#Install() | ||
|
||
let g:dirsettingsVimRcVariable="set-by-vimrc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
#!/bin/bash | ||
filepath="$(dirname "$(readlink -f "$0")")" | ||
|
||
OLD_VIMRUNTIME="${VIMRUNTIME}" | ||
export VIMRUNTIME="${filepath}/environment" | ||
|
||
if [ $# -gt 1 ]; then | ||
env sh ${filepath}/runVimTests/bin/runVimTests.sh --default "$@" | ||
env sh ${filepath}/runVimTests/bin/runVimTests.sh --default --source "${filepath}/environment/.vimrc" "$@" | ||
else | ||
env sh ${filepath}/runVimTests/bin/runVimTests.sh --default "${filepath}/src" | ||
env sh ${filepath}/runVimTests/bin/runVimTests.sh --default --source "${filepath}/environment/.vimrc" "${filepath}/src" | ||
fi | ||
|
||
export VIMRUNTIME="${OLD_VIMRUNTIME}" | ||
|
||
if [ -z "${TESTDEBUG}" ]; then | ||
rm ${filepath}/src/*.{msgout,out,msgresult} >/dev/null 2>&1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
source _setup.vim | ||
|
||
set rtp? | ||
edit ../data/file-only/level1/empty | ||
|
||
echo g:dirsettingsLevel1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
source _setup.vim | ||
|
||
edit ../data/file-only/level1/level2/empty | ||
|
||
echo g:dirsettingsLevel1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
source _setup.vim | ||
|
||
edit ../data/file-only/level1/level2/level3/empty | ||
|
||
echo g:dirsettingsLevel1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
set-by-vimrc | ||
"../data/file-only/level1/empty" | ||
"../data/file-only/level1/empty" 0L, 0C | ||
set-by-level1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
echo g:dirsettingsVimRcVariable | ||
|
||
edit ../data/file-only/level1/empty | ||
|
||
echo g:dirsettingsVimRcVariable | ||
|
||
quit! |