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

@@ -11,7 +11,7 @@ RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|
# install pytest, sshd for test, and rpm-build
RUN set -ex && yum -y update && yum -y install \
python3 python3-pip openssh openssh-server openssh-clients rpm-build
python3 python3-pip python3-devel openssh openssh-server openssh-clients rpm-build
RUN python3 -m pip install pytest
@@ -34,3 +34,6 @@ RUN cd ${mscpdir} \
&& cpack -G RPM CPackConfig.cmake \
&& rpm -iv *.rpm
# install mscp python module
RUN cd ${mscpdir} \
&& python3 setup.py install --user