[libsoup/autobahn-integration-new] auobahn-test.c: Fetch autobahn 'num_cases' to run from env variable and limit number of cases to 100
- From: Diego Pino <dpino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/autobahn-integration-new] auobahn-test.c: Fetch autobahn 'num_cases' to run from env variable and limit number of cases to 100
- Date: Fri, 26 Feb 2021 02:49:04 +0000 (UTC)
commit 828f6b528b02544010c44c15f2489d17955302a3
Author: Diego Pino Garcia <dpino igalia com>
Date: Fri Feb 26 10:45:23 2021 +0800
auobahn-test.c: Fetch autobahn 'num_cases' to run from env variable and limit number of cases to 100
.gitlab-ci.yml | 2 +-
tests/autobahn/autobahn-test.c | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f71c6b63..c9750474 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,7 +36,7 @@ fedora-autobahn:
extends: .build
script:
- meson _build -Dauto-features=enabled -Dautobahn=enabled
- - meson test -C _build --suite autobahn --verbose
+ - AUTOBAHN_NUM_CASES=300 meson test -C _build --suite autobahn --verbose
artifacts:
paths:
- "_build/meson-logs/autobahn-report"
diff --git a/tests/autobahn/autobahn-test.c b/tests/autobahn/autobahn-test.c
index b782eeb0..c7374d1c 100644
--- a/tests/autobahn/autobahn-test.c
+++ b/tests/autobahn/autobahn-test.c
@@ -236,8 +236,10 @@ int main (int argc, char *argv[])
test_init (argc, argv, NULL);
- if (!autobahn_server ("--start", &num_cases))
- exit (1);
+ if (getenv ("AUTOBAHN_NUM_CASES"))
+ num_cases = atol (getenv ("AUTOBAHN_NUM_CASES"));
+ else if (!autobahn_server ("--start", &num_cases))
+ exit (1);
session = soup_session_new ();
soup_session_add_feature_by_type (session, SOUP_TYPE_WEBSOCKET_EXTENSION_MANAGER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]