mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
CI: Invoke test scripts via meson test where possible
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. In particular, it encapsulates which of the tests want to be run from which directories, removing the need for the Gitlab-CI integration to know this. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
947f40f511
commit
25ee24000e
1 changed files with 5 additions and 5 deletions
|
|
@ -212,16 +212,16 @@ fedora meson build:
|
|||
- export CFLAGS="-Werror -Wno-error=deprecated-declarations"
|
||||
- meson builddir ${MESON_ARGS}
|
||||
- ninja -C builddir
|
||||
# - ninja -C builddir test
|
||||
|
||||
# Run test scripts
|
||||
#- (cd builddir/src && srcdir=../../src bash "$srcdir/check-def.sh") This script calls "make cairo.def" and thus does not work with meson
|
||||
- mkdir builddir/src/.libs
|
||||
- touch builddir/src/.libs/libfoo.so
|
||||
- MAKE=echo CAIRO_HAS_HIDDEN_SYMBOLS=1 bash src/check-plt.sh builddir/src/libcairo.so
|
||||
- (cd src && bash "check-headers.sh")
|
||||
- (cd src && bash "check-preprocessor-syntax.sh")
|
||||
- (cd src && bash "check-doc-syntax.sh")
|
||||
# Run all the tests, except for the big test executable which
|
||||
# gets run separately
|
||||
- meson test -C builddir --no-suite=slow
|
||||
|
||||
# TODO: These aren't set up as Meson tests yet
|
||||
- (cd doc/public && bash "check-doc-syntax.sh")
|
||||
# FIXME: The following line really needs gtk-doc to run first
|
||||
- (cd doc/public && DOC_MODULE=cairo bash "check-doc-coverage.sh")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue