Add a bunch of stuff, change leader key
git-svn-id: http://photonzero.com/dotfiles/trunk@70 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
parent
410560d54e
commit
c47f86d55b
90 changed files with 9641 additions and 1653 deletions
55
.vim/bundle/lusty/tests/run-tests.bash
Executable file
55
.vim/bundle/lusty/tests/run-tests.bash
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$1" in
|
||||
-h|--help)
|
||||
echo '[VIM=path/to/vim] ./run-tests.bash [test-dir]'
|
||||
exit 0
|
||||
;;
|
||||
?*)
|
||||
if [ -d "$1" ]; then
|
||||
test_dirs="$1"
|
||||
else
|
||||
echo "Error: $1 unknown"
|
||||
exit 1
|
||||
fi
|
||||
esac
|
||||
|
||||
if [ ! "$VIM" ]; then
|
||||
export VIM=`which vim`
|
||||
fi
|
||||
|
||||
export VIEW=${VIM%/*}/view
|
||||
|
||||
export DISPLAY=
|
||||
|
||||
vim_version=$($VIM --version | head -n1)
|
||||
ruby_version=$($VIM --version | grep -- '-lruby' | \
|
||||
sed 's/.*-lruby\([^ ]*\).*/\1/')
|
||||
|
||||
echo "Testing against:"
|
||||
echo " $vim_version"
|
||||
echo " Ruby: $ruby_version"
|
||||
|
||||
failures=
|
||||
|
||||
if [ ! "$test_dirs" ]; then
|
||||
test_dirs=*/
|
||||
fi
|
||||
|
||||
for dir in $test_dirs; do
|
||||
cd $dir
|
||||
if ! expect -f expect; then
|
||||
echo "fail: $dir"
|
||||
failures="$failures $dir"
|
||||
fi
|
||||
cd ..
|
||||
done >/dev/null
|
||||
|
||||
if [ "$failures" ]; then
|
||||
echo
|
||||
echo "Failing tests: $failures" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo Success
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue