mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
added DNF version of test installAutomaticTestSoftware
This commit is contained in:
parent
f9c1bcee66
commit
06a8f7b3c6
39
pdf2htmlEX/test/installAutomaticTestSoftwareDnf
Executable file
39
pdf2htmlEX/test/installAutomaticTestSoftwareDnf
Executable 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
|
Loading…
Reference in New Issue
Block a user