mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-31 14:01:59 +00:00
Convert build-linux to cmake
This commit is contained in:
parent
702058a1c3
commit
6d7c0badc1
@ -2,16 +2,20 @@
|
|||||||
set -ex
|
set -ex
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install \
|
sudo apt-get -y install \
|
||||||
autoconf build-essential zlib1g-dev libjpeg-dev libgnutls28-dev \
|
build-essential cmake zlib1g-dev libjpeg-dev libgnutls28-dev \
|
||||||
libssl-dev libtiff-tools ghostscript
|
libssl-dev libtiff-tools ghostscript
|
||||||
./configure --enable-werror \
|
cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
--enable-crypto-native --enable-crypto-openssl --enable-crypto-gnutls \
|
-DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1
|
||||||
--enable-show-failed-test-output --enable-test-compare-images
|
cmake --build build -j$(nproc) -- -k
|
||||||
make -j$(nproc) -k
|
cd build
|
||||||
for i in $(./qpdf/build/qpdf --show-crypto); do
|
# libtests automatically runs with all crypto providers.
|
||||||
echo "*** Running tests with crypto provider $i"
|
env QPDF_TEST_COMPARE_IMAGES=1 ctest --verbose
|
||||||
env QPDF_CRYPTO_PROVIDER=$i make -k check
|
# Run just qpdf tests with remaining crypto providers.
|
||||||
|
for i in $(./qpdf/qpdf --show-crypto | tail -n +2); do
|
||||||
|
echo "*** Running qpdf tests with crypto provider $i"
|
||||||
|
env QPDF_CRYPTO_PROVIDER=$i ctest --verbose -R '^qpdf$'
|
||||||
done
|
done
|
||||||
|
cd ..
|
||||||
export TMPDIR=$PWD/dist-tmp
|
export TMPDIR=$PWD/dist-tmp
|
||||||
rm -rf $TMPDIR
|
rm -rf $TMPDIR
|
||||||
./make_dist --ci
|
./make_dist --ci
|
||||||
|
Loading…
Reference in New Issue
Block a user