From cf6c15a6c5bf75bc160c77d3bd302c9c02563455 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 19 Jul 2017 09:21:23 -0400 Subject: [PATCH] ci/papr: Add a suite to run introspection-based tests without ASAN Unfortunately we can't do gobject-introspection based tests while compiling with `-fsanitize=address`, since it needs to hook `malloc` early on. Add a new suite which just runs the introspection-based tests without ASAN. Closes: #1016 Approved by: jlebon --- .papr.yml | 16 ++++++++++++++++ ci/build-check.sh | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.papr.yml b/.papr.yml index 32d2b224..bd4ff47b 100644 --- a/.papr.yml +++ b/.papr.yml @@ -91,6 +91,22 @@ tests: --- +inherit: true +required: true + +context: f26-introspection-tests + +env: + CONFIGOPTS: "--with-curl --with-openssl" + # ASAN conflicts with introspection testing; + # See https://github.com/ostreedev/ostree/issues/1014 + INSTALLED_TESTS_PATTERN: "libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js libostree/test-corrupt-repo-ref.js" + +tests: + - ci/build-check.sh + +--- + inherit: false branches: - master diff --git a/ci/build-check.sh b/ci/build-check.sh index 677515b3..0e12000f 100755 --- a/ci/build-check.sh +++ b/ci/build-check.sh @@ -11,7 +11,7 @@ make syntax-check # TODO: do syntax-check under check # And now run the installed tests make install if test -x /usr/bin/gnome-desktop-testing-runner; then - gnome-desktop-testing-runner -p 0 libostree/ + gnome-desktop-testing-runner -p 0 ${INSTALLED_TESTS_PATTERN:-libostree/} fi if test -x /usr/bin/clang; then