[glib/wip/smcv/installed-tests: 3/3] gobject/tests/performance: Only run a quick version as installed-tests
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/smcv/installed-tests: 3/3] gobject/tests/performance: Only run a quick version as installed-tests
- Date: Sun, 24 Jul 2022 16:36:52 +0000 (UTC)
commit 72868c026d5df70a0b4729c9dad193df3ee4961a
Author: Simon McVittie <smcv collabora com>
Date: Sun Jul 24 17:34:55 2022 +0100
gobject/tests/performance: Only run a quick version as installed-tests
ginsttest-runner defaults to timing out each test after 5 minutes,
but gobject/tests/performance/performance.c defaults to running each
of 18 tests for 15 seconds. The result is close enough to 5 minutes
that the setup overhead is enough to make it time out.
We're only running these tests to prove that they still work, not to
get meaningful performance numbers, so cut them down to 1 second per
test-case (the result of which is that performance.c takes about a
minute).
Signed-off-by: Simon McVittie <smcv collabora com>
gobject/tests/performance/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/tests/performance/meson.build b/gobject/tests/performance/meson.build
index 63297f4601..22bf79da0a 100644
--- a/gobject/tests/performance/meson.build
+++ b/gobject/tests/performance/meson.build
@@ -20,7 +20,7 @@ foreach test_name, extra_args : gobject_tests
if install
test_conf = configuration_data()
test_conf.set('installed_tests_dir', installed_tests_execdir)
- test_conf.set('program', test_name)
+ test_conf.set('program', '@0@ --seconds 1'.format(test_name))
test_conf.set('env', '')
configure_file(
input: installed_tests_template,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]