mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
38cd94bec8
* Define POINTERHOLDER_TRANSITION * Make sure we are getting the intended version of qpdf
21 lines
473 B
Bash
Executable File
21 lines
473 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Test that the installed qpdf CLI works. Requires the CLI and runtime
|
|
# libraries.
|
|
#
|
|
set -ex
|
|
|
|
TMP=$1
|
|
if [ ! -d "$TMP" ]; then
|
|
echo 1>&2 "Usage: $0 tmp-dir"
|
|
exit 2
|
|
fi
|
|
|
|
WANTED_VERSION=$(awk -F'"' '/#define QPDF_VERSION / {print $2}' include/qpdf/DLL.h)
|
|
|
|
qpdf --version | grep -F $WANTED_VERSION
|
|
qpdf --help
|
|
qpdf --check qpdf/qtest/qpdf/minimal.pdf
|
|
qpdf qpdf/qtest/qpdf/minimal.pdf --encrypt u o 256 -- $TMP/out.pdf
|
|
qpdf --check --password=u $TMP/out.pdf
|