aboutsummaryrefslogtreecommitdiffstats
path: root/pkg-test/test-cli
diff options
context:
space:
mode:
Diffstat (limited to 'pkg-test/test-cli')
-rwxr-xr-xpkg-test/test-cli4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg-test/test-cli b/pkg-test/test-cli
index 6b1c1d88..f69e546a 100755
--- a/pkg-test/test-cli
+++ b/pkg-test/test-cli
@@ -11,7 +11,9 @@ if [ ! -d "$TMP" ]; then
exit 2
fi
-qpdf --version
+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