2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Add pikepdf tests to CI

This commit is contained in:
Jay Berkenbilt 2023-02-25 16:05:14 -05:00
parent bfba444111
commit 62bb78f046
2 changed files with 25 additions and 0 deletions

View File

@ -111,6 +111,13 @@ jobs:
- uses: actions/checkout@v3
- name: 'Linux 32-bit'
run: build-scripts/build-linux32
pikepdf:
runs-on: ubuntu-latest
needs: Prebuild
steps:
- uses: actions/checkout@v3
- name: 'pikepdf'
run: build-scripts/test-pikepdf
Fuzzers:
runs-on: ubuntu-latest
needs: Prebuild

18
build-scripts/test-pikepdf Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -ex
sudo apt-get update
sudo apt-get -y install \
build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev
cmake -S . -B build -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build --verbose -j$(nproc) --target libqpdf -- -k
export QPDF_SOURCE_TREE=$PWD
export QPDF_BUILD_LIBDIR=$QPDF_SOURCE_TREE/build/libqpdf
export LD_LIBRARY_PATH=$QPDF_BUILD_LIBDIR
git clone https://github.com/pikepdf/pikepdf
python3 -m venv v
source v/bin/activate
cd pikepdf
python3 -m pip install --upgrade pip
python3 -m pip install '.[test]'
python3 -m pip install .
pytest -n auto