diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-12-23 16:41:55 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-23 17:10:55 +0100 |
commit | 2f37633b923e0294acd894454a95d2a9ee1d36a9 (patch) | |
tree | ba71b08f35a9eaacf7733ec0fa18a16f665bf002 /pkg-test/README.md | |
parent | 6b8aa1db6f5c204913ccf53c1fe3cdec7aa6c132 (diff) | |
download | qpdf-2f37633b923e0294acd894454a95d2a9ee1d36a9.tar.zst |
Fix pkg-test tests and run from CI
Diffstat (limited to 'pkg-test/README.md')
-rw-r--r-- | pkg-test/README.md | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkg-test/README.md b/pkg-test/README.md index 95f7ecb8..6426388a 100644 --- a/pkg-test/README.md +++ b/pkg-test/README.md @@ -2,13 +2,16 @@ The files in this directory are called by autopkgtest in the debian package but can be used by any packager to verify installed packages. Each test-* script should be run from the top of the source tree and takes an empty directory as its single argument. The test passes if the script exits with a zero exit status. Note that these tests write to stderr because they use set -x in the shell. -On a GNU/Linux system, you can run `./pkg-test/run-all` from the top-level directory to run all the tests. For example: +On a GNU/Linux system, you can run `./pkg-test/run-all` from the top-level directory to run all the tests. Note that you have to specify an altrenative install prefix rather than using DESTDIR since, otherwise, pkg-config won't find the packages. For example: ``` -cmake -S . -B build +cmake -S . -B build \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/tmp/inst cmake --build build -j$(nproc) -DESTDIR=/tmp/inst cmake --install build -env PKG_CONFIG_PATH=/tmp/inst/usr/local/lib/pkgconfig \ - CMAKE_PREFIX_PATH=/tmp/inst/usr/local \ +cmake --install build +env PKG_CONFIG_PATH=/tmp/inst/lib/pkgconfig \ + LD_LIBRARY_PATH=/tmp/inst/lib \ + CMAKE_PREFIX_PATH=/tmp/inst \ + PATH=/tmp/inst/bin:$PATH \ ./pkg-test/run-all ``` |