Skip to content

Commit 39c76e1

Browse files
author
hardenedapple
committed
Minor improvement for test script
When running on Linux it uses GNU sed to substitute windows pathname seperators for unix-like ones. Don't currently do this on any other unix's as I use the "in place" option of GNU sed that isn't available everywhere. Further compatibility would require more extensive changes that may very well be overwritten in the future.
1 parent b7c5ce5 commit 39c76e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# This suite requires https://github.com/inkarkat/runVimTests to run
2+
if [[ $(uname -s) == "Linux" ]]; then
3+
sed -i ':a; s,^\([^|]*\)\\,\1/,g; ta' *.ok
4+
fi
25
TEST_SOURCES="--pure --runtime bundle/vim-easygrep/autoload/EasyGrep.vim --runtime bundle/vim-easygrep/plugin/EasyGrep.vim"
36
bash ../../runVimTests/bin/runVimTests.sh $TEST_SOURCES vimgrep.suite
7+
if [[ $(uname -s) == "Linux" ]]; then
8+
sed -i ':a; s,^\([^|]*\)/,\1\\,g; ta' *.ok
9+
fi

0 commit comments

Comments
 (0)