Skip to content

Commit

Permalink
Guess VIMSPECTOR_MI_DEBUGGER path
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Mar 9, 2020
1 parent c1283a2 commit 6c8657c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,18 @@ if [ -z "$VIMSPECTOR_MIMODE" ]; then
fi
fi

echo "Testing with VIMSPECTOR_MIMODE=$VIMSPECTOR_MIMODE"
if [ -z "${VIMSPECTOR_MI_DEBUGGER}" ]; then
if which lldb-mi >/dev/null 2>&1; then
export VIMSPECTOR_MI_DEBUGGER=lldb-mi
else
echo "Couldn't guess VIMSPECTOR_MI_DEBUGGER. Need lldb-mi in path"
exit 1
fi
fi

echo "Testing with:"
echo " * VIMSPECTOR_MIMODE=$VIMSPECTOR_MIMODE"
echo " * VIMSPECTOR_MI_DEBUGGER=${VIMSPECTOR_MI_DEBUGGER}"

echo "%SETUP - Building test programs..."
set -e
Expand Down

0 comments on commit 6c8657c

Please sign in to comment.