summaryrefslogtreecommitdiff
path: root/scripts/test-in-container.sh
blob: cdaef478d2990e5d6658f408ebe6771bc953222c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e
#
# Run this script in mscp docker containers.
# This script runs end-to-end test with installed mscp.

script_dir=$(cd $(dirname ${0}) && pwd)
cd $script_dir

set -x

# Run sshd
if [ ! -e /var/run/sshd.pid ]; then
	/usr/sbin/sshd
	sleep 1
fi

ssh-keyscan localhost >> ${HOME}/.ssh/known_hosts

# Run test
python3 -m pytest ../test -v