test: add test_python.py for testing python-mscp

Dockerfiles also adapt themselvs for testing python-mscp bindings.
This commit is contained in:
Ryo Nakamura
2023-03-12 20:37:57 +09:00
parent 597a7a8cba
commit e2da5811ce
8 changed files with 142 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ RUN set -ex && apt-get update && apt-get install -y --no-install-recommends \
# install pytest, and sshd for test
RUN apt-get install -y --no-install-recommends \
python3 python3-pip openssh-server
python3 python3-pip python3-dev openssh-server
RUN python3 -m pip install pytest
@@ -33,3 +33,8 @@ RUN cd ${mscpdir} \
&& make \
&& cpack -G DEB CPackConfig.cmake \
&& dpkg -i *.deb
# install mscp python module
RUN cd ${mscpdir} \
&& python3 setup.py install --user