Default VIMSPECTOR_MIMODE
This commit is contained in:
parent
26f3ea17c2
commit
652fc4d280
1 changed files with 13 additions and 0 deletions
13
run_tests
13
run_tests
|
|
@ -3,6 +3,19 @@
|
||||||
RUN_VIM="vim --noplugin --clean --not-a-term"
|
RUN_VIM="vim --noplugin --clean --not-a-term"
|
||||||
RUN_TEST="${RUN_VIM} -S run_test.vim"
|
RUN_TEST="${RUN_VIM} -S run_test.vim"
|
||||||
|
|
||||||
|
if [ -z "$VIMSPECTOR_MIMODE" ]; then
|
||||||
|
if which -s lldb; then
|
||||||
|
export VIMSPECTOR_MIMODE=lldb
|
||||||
|
elif which -s gdb; then
|
||||||
|
export VIMSPECTOR_MIMODE=gdb
|
||||||
|
else
|
||||||
|
echo "Couldn't guess VIMSPECTOR_MIMODE. Need lldb or gdb in path"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Testing with VIMSPECTOR_MIMODE=$VIMSPECTOR_MIMODE"
|
||||||
|
|
||||||
echo "%SETUP - Building test programs..."
|
echo "%SETUP - Building test programs..."
|
||||||
set -e
|
set -e
|
||||||
pushd tests/testdata/cpp/simple
|
pushd tests/testdata/cpp/simple
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue