bigbluebutton-Github/bigbluebutton-html5/test-html5.sh
browniecab a9fcad4a0d Added Puppeteer tests
(cherry picked from commit 91ed0475fce431322bef33e0ccb2465d2213f87f)
2018-10-03 13:32:53 -04:00

27 lines
572 B
Bash
Executable File

# Change to HTML5 directory
cd $(dirname $0)
echo "Working directory: $PWD"
# Build and run Docker image
docker build -t b2 .
docker=$(docker run -d -p 80:80/tcp -p 443:443/tcp -p 1935:1935 -p 5066:5066 -p 3478:3478 -p 3478:3478/udp b2 -h 10.130.218.149)
echo $docker
# Check if HTML5 client is ready
cd tests/puppeteer
node test-html5-check.js
status=$?
echo $status
# Run tests
if [ $status -eq 0 ]; then
node test-chat.js
node test-draw.js
node test-upload.js
node test-switch-slides.js
node test-status.js
fi
# Stop Docker container
docker stop $docker