From 3613417fb9b579cfe9a3a85dca7996442e942fc6 Mon Sep 17 00:00:00 2001 From: Diego Pino Garcia Date: Wed, 20 Jan 2021 21:23:04 +0800 Subject: ci: add step to run autobahn tests --- .gitlab-ci.yml | 16 ++++++++++++++-- tests/autobahn/meson.build | 4 +++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c95614c..18de3d45 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,7 @@ fedora-test: - cp .gitlab-ci/lcovrc ~/.lcovrc - meson _build -Db_coverage=true -Dauto_features=enabled - meson compile -C _build - - meson test -C _build --verbose + - meson test --no-suite autobahn -C _build --verbose - ninja -C _build coverage-html artifacts: reports: @@ -32,6 +32,18 @@ fedora-test: - "_build/meson-logs/coveragereport" coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/' +fedora-autobahn: + extends: .build + script: + - meson test -C _build --suite autobahn --verbose + only: + changes: + - "libsoup/" + - "tests/autobahn" + artifacts: + paths: + - "_build/tests/autobahn/autobahn-report" + fedora-scan: extends: .build script: @@ -52,7 +64,7 @@ fedora-asan: SOUP_TEST_NO_IPV6: 1 script: - meson _build -Dauto-features=enabled -Db_sanitize=address -Dintrospection=disabled -Dvapi=disabled - - meson test -C _build --verbose --timeout-multiplier=10 + - meson test --no-suite autobahn -C _build --verbose --timeout-multiplier=10 artifacts: when: on_failure paths: diff --git a/tests/autobahn/meson.build b/tests/autobahn/meson.build index 20370b0b..c308f333 100644 --- a/tests/autobahn/meson.build +++ b/tests/autobahn/meson.build @@ -3,4 +3,6 @@ deps = [ libsoup_dep ] -executable('soup-autobahn-test-client', 'soup-autobahn-test-client.c', dependencies: deps) +client = executable('soup-autobahn-test-client', 'soup-autobahn-test-client.c', dependencies: deps) + +test('soup-autobahn-test-client', client, suite: 'autobahn', timeout: 3600) -- cgit v1.2.1