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
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