[libsoup/wip/meson: 37/38] Disable parallelism for Apache based tests
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/meson: 37/38] Disable parallelism for Apache based tests
- Date: Thu, 16 Nov 2017 15:17:30 +0000 (UTC)
commit 7be6a99e10d63368b49a789b6a6b6ae5cd1f5537
Author: Tomas Popela <tpopela redhat com>
Date: Tue Nov 14 15:08:57 2017 +0100
Disable parallelism for Apache based tests
Otherwise they (unsurprisingly) start to randomly fail when running
meson test (that's using all available cores by default).
tests/meson.build | 79 +++++++++++++++++++++++++++--------------------------
1 files changed, 40 insertions(+), 39 deletions(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index c2ef009..27488cb 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -3,44 +3,45 @@ test_utils = library('test-utils', 'test-utils.c', 'test-utils.h',
c_args : '-DAPACHE_HTTPD=' + cdata.get('APACHE_HTTPD'),
dependencies : [glib_dep, libsoup_dep])
+# ['name', is_parallel]
tests = [
- 'auth',
- 'cache',
- 'chunk',
- 'chunk-io',
- 'coding',
- 'connection',
- 'context',
- 'continue',
- 'cookies',
- 'date',
- 'forms',
- 'header-parsing',
- 'misc',
- 'multipart',
- 'no-ssl',
- 'ntlm',
- 'proxy',
- 'pull-api',
- 'range',
- 'redirect',
- 'requester',
- 'resource',
- 'session',
- 'server-auth',
- 'server',
- 'sniffing',
- 'socket',
- 'ssl',
- 'streaming',
- 'timeout',
- 'tld',
- 'uri-parsing',
- 'websocket',
- 'xmlrpc-old-server',
- 'xmlrpc-old',
- 'xmlrpc-server',
- 'xmlrpc'
+ ['auth', false],
+ ['cache', true],
+ ['chunk', true],
+ ['chunk-io', true],
+ ['coding', true],
+ ['connection', false],
+ ['context', true],
+ ['continue', true],
+ ['cookies', true],
+ ['date', true],
+ ['forms', true],
+ ['header-parsing', true],
+ ['misc', true],
+ ['multipart', true],
+ ['no-ssl', true],
+ ['ntlm', true],
+ ['proxy', true],
+ ['pull-api', false],
+ ['range', false],
+ ['redirect', true],
+ ['requester', true],
+ ['resource', true],
+ ['session', true],
+ ['server-auth', true],
+ ['server', true],
+ ['sniffing', true],
+ ['socket', true],
+ ['ssl', true],
+ ['streaming', true],
+ ['timeout', true],
+ ['tld', true],
+ ['uri-parsing', true],
+ ['websocket', true],
+ ['xmlrpc-old-server', true],
+ ['xmlrpc-old', false],
+ ['xmlrpc-server', true],
+ ['xmlrpc', false]
]
env = environment()
@@ -52,11 +53,11 @@ env.set('MALLOC_CHECK_', '2')
env.set('MALLOC_PERTURB_', '')
foreach test: tests
- test_name = '@0@-test'.format(test)
+ test_name = '@0@-test'.format(test[0])
test_target = executable(test_name, test_name + '.c',
link_with: test_utils,
dependencies : [glib_dep, libsoup_dep])
- test(test_name, test_target, env : env)
+ test(test_name, test_target, env : env, is_parallel : test[1])
endforeach
executable('ntlm-test-helper', 'ntlm-test-helper.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]