1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 12:40:08 +00:00

added DNF version of test installAutomaticTestSoftware

This commit is contained in:
Stephen Gaito 2020-07-23 18:12:15 +00:00
parent f9c1bcee66
commit 06a8f7b3c6

View File

@ -0,0 +1,39 @@
#!/bin/sh
set -ev
# This shell script installs all local software required to run the
# pdf2htmlEX tests
export DEBIAN_FRONTEND=noninteractive
# Start by making sure all required apt packages exist
#
sudo dnf -y --setopt=install_weak_deps=False install \
wget \
diffutils \
zip \
python3 \
python3-pip \
xorg-x11-server-Xvfb \
firefox
# Now get the geckodriver for firefox (as required by selenium)
#
oldPWD=$(pwd)
cd /tmp
#
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
#
tar xvf geckodriver-v0.26.0-linux64.tar.gz
#
sudo mv geckodriver /usr/local/bin
#
cd $oldPWD
# Now make sure all python packages exist (install into the local user's
# PyPI archive)
#
pip3 install \
selenium \
Pillow