2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 19:08:59 +00:00
qpdf/pkg-test
Jay Berkenbilt 12f1eb15ca Programmatically apply new formatting to code
Run this:

for i in  **/*.cc **/*.c **/*.h **/*.hh; do
  clang-format < $i >| $i.new && mv $i.new $i
done
2022-04-04 08:10:40 -04:00
..
CMakeLists.txt Add installed package smoke tests in pkg-test directory 2022-03-18 19:53:18 -04:00
qpdf-version.cc Programmatically apply new formatting to code 2022-04-04 08:10:40 -04:00
README.md Add installed package smoke tests in pkg-test directory 2022-03-18 19:53:18 -04:00
run-all Add installed package smoke tests in pkg-test directory 2022-03-18 19:53:18 -04:00
test-cli Add installed package smoke tests in pkg-test directory 2022-03-18 19:53:18 -04:00
test-cmake Add installed package smoke tests in pkg-test directory 2022-03-18 19:53:18 -04:00
test-pkg-config Put spaces around version constraint in pkg-config (fixes #677) 2022-03-23 10:52:40 -04:00

Tests for installed packages

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:

cmake -S . -B build
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 \
   ./pkg-test/run-all