Make debugging actually work on linux by installing gdb. Also, add a manual image for testing the tests
This commit is contained in:
parent
4f75f11554
commit
3a70b3dd2c
6 changed files with 56 additions and 7 deletions
|
|
@ -164,7 +164,7 @@ function! Test_Use_Mappings_HUMAN()
|
|||
|
||||
call WaitForAssert( {->
|
||||
\ assert_equal( 'simple.cpp', bufname( '%' ), 'Current buffer' )
|
||||
\ }, 60000 )
|
||||
\ }, 10000 )
|
||||
call assert_equal( 15, line( '.' ), 'Current line' )
|
||||
call assert_equal( 1, col( '.' ), 'Current column' )
|
||||
|
||||
|
|
|
|||
|
|
@ -10,23 +10,29 @@ RUN apt-get update && \
|
|||
libncurses5-dev libncursesw5-dev \
|
||||
git \
|
||||
tcl-dev \
|
||||
tcllib && \
|
||||
tcllib \
|
||||
gdb \
|
||||
lldb && \
|
||||
apt-get -y autoremove
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/London /etc/localtime && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
## cleanup of files from setup
|
||||
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
ARG VIM_VERSION=v8.1.1270
|
||||
|
||||
ENV CONF_ARGS "--with-features=huge \
|
||||
--enable-python3interp \
|
||||
--enable-terminal \
|
||||
--enable-multibyte \
|
||||
--enable-fail-if-missing"
|
||||
|
||||
RUN mkdir -p $HOME/vim && \
|
||||
cd $HOME/vim && \
|
||||
git clone https://github.com/vim/vim && \
|
||||
cd vim && \
|
||||
git checkout ${VIM_VERSION} && \
|
||||
./configure --with-features=huge \
|
||||
--enable-python3interp \
|
||||
--enable-terminal \
|
||||
--enable-multibyte \
|
||||
--enable-fail-if-missing && \
|
||||
make -j 4 install
|
||||
|
||||
|
|
|
|||
5
tests/manual/image/.vim/vimrc
Normal file
5
tests/manual/image/.vim/vimrc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
runtime defaults.vim
|
||||
let g:vimspector_enable_mappings='HUMAN'
|
||||
set signcolumn=yes
|
||||
set rtp+=$HOME/vimspector
|
||||
filetype plugin indent on
|
||||
20
tests/manual/image/Dockerfile
Normal file
20
tests/manual/image/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM puremourning/vimspector:test
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y dist-upgrade && \
|
||||
apt-get -y install sudo
|
||||
|
||||
## cleanup of files from setup
|
||||
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN useradd -ms /bin/bash -d /home/dev -G sudo dev && \
|
||||
echo "dev:dev" | chpasswd && \
|
||||
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/sudo
|
||||
|
||||
USER dev
|
||||
WORKDIR /home/dev
|
||||
|
||||
ENV HOME /home/dev
|
||||
ENV PYTHON_CONFIGURE_OPTS --enable-shared
|
||||
|
||||
ADD --chown=dev:dev .vim/ /home/dev/.vim/
|
||||
5
tests/manual/rebuild
Executable file
5
tests/manual/rebuild
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
docker build --no-cache -t puremourning/vimspector:manual image/
|
||||
13
tests/manual/run
Executable file
13
tests/manual/run
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CONTAINER=puremourning/vimspector:manual
|
||||
|
||||
if [ "$@" ];then
|
||||
CMD="$@"
|
||||
fi
|
||||
|
||||
docker run --cap-add=SYS_PTRACE \
|
||||
--security-opt seccomp=unconfined \
|
||||
--mount src="$(pwd)/../..",target=/home/dev/vimspector,type=bind \
|
||||
-it ${CONTAINER} \
|
||||
$CMD
|
||||
Loading…
Add table
Add a link
Reference in a new issue