Skip to content

Commit 736061d

Browse files
committed
fixup! Add meson build system
1 parent 5055db6 commit 736061d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/meson.build

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
tests = [
22
{
33
'name': 'test-brush-load',
4+
# Takes less than a second.
5+
'timeout': 5,
46
},
57
{
68
'name': 'test-brush-persistence',
9+
# Takes less than a second.
10+
'timeout': 5,
711
},
812
{
913
'name': 'test-details',
14+
# Takes anywhere from 6, 8, 9, 32, 40, seconds
15+
'timeout': 60,
1016
},
1117
{
1218
'name': 'test-fixed-tiled-surface',
19+
# Takes from 189, 198, 406.45s 205.32s 520.89s 800.01s 13
20+
'timeout': 0,
1321
},
1422
{
1523
'name': 'test-rng',
24+
# Takes less than a second.
25+
'timeout': 5,
1626
},
1727
]
1828

@@ -29,6 +39,8 @@ if use_gegl
2939
'link': [
3040
libmypaint_gegl,
3141
],
42+
# Takes around 439. 670.63s 435.06s 647 800+ 800+
43+
'timeout': 0,
3244
}
3345
endif
3446

@@ -54,6 +66,7 @@ foreach test : tests
5466
test_deps = test.get('deps', [])
5567
test_incs = test.get('incs', [])
5668
test_link = test.get('link', [])
69+
test_timeout = test.get('timeout', 30)
5770

5871
test_exe = executable(
5972
test_name,
@@ -80,7 +93,6 @@ foreach test : tests
8093
test(
8194
test_name,
8295
test_exe,
83-
# test-gegl-surface takes very long without optimizations.
84-
timeout: 0,
96+
timeout: test_timeout,
8597
)
8698
endforeach

0 commit comments

Comments
 (0)