Skip to content

CI: Use `meson test` to run cairo-test-suite

  • Switch CI tests from autotools to meson

    From: @psychon

    Taken from !300 (merged), rebased on master with no changes.

  • CI: Update test artifacts to be appropriate for out-of-tree Meson build

  • CI: Use meson test to run cairo-test-suite

    Using meson test is the Meson equivalent of make check, and is the way developers of other Meson-built projects will generally expect to run tests: it wraps the test in Meson's test framework, including ensuring that the execution environment matches the workdir and env that are configured in meson.build. This avoids having to duplicate the details of how to run the test everywhere.

    The cairo argument here corresponds to the first argument to test() in test/meson.build, preserving the existing CI behaviour of not running the various smaller shell-script-based tests in these contexts.

  • meson: Disable automatic setting of MALLOC_PERTURB_

    Normally, meson test automatically sets MALLOC_PERTURB_ to a random value, to try to find more memory errors. However, this isn't currently expected to work in cairo-test-suite.

Edited by Simon McVittie

Merge request reports