mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
54 lines
1.6 KiB
TOML
54 lines
1.6 KiB
TOML
# None of our tests should take longer than 45s, and if they've gone 2x that,
|
|
# terminate them to prevent infinite run-on.
|
|
[profile.default]
|
|
default-filter = "!test(~oom_test)"
|
|
slow-timeout = { period = "45s", terminate-after = 2 }
|
|
fail-fast = false
|
|
retries = 0
|
|
|
|
[profile.default-miri]
|
|
# Miri is very very slow, so give it a much longer timeout.
|
|
slow-timeout = { period = "120s", terminate-after = 4 }
|
|
|
|
# Use two threads for tests with "2 threads" in their name
|
|
[[profile.default.overrides]]
|
|
filter = 'test(~2_threads) | test(~2 threads)'
|
|
threads-required = 2
|
|
|
|
# Use four threads for tests with "4 threads" in their name
|
|
[[profile.default.overrides]]
|
|
filter = 'test(~4_threads) | test(~4 threads)'
|
|
threads-required = 4
|
|
|
|
# Use eight threads for tests with "8 threads" in their name
|
|
[[profile.default.overrides]]
|
|
filter = 'test(~8_threads) | test(~8 threads)'
|
|
threads-required = 8
|
|
|
|
#
|
|
# Workarounds for flaky tests
|
|
#
|
|
|
|
# https://github.com/gfx-rs/wgpu/issues/7200
|
|
[[profile.default.overrides]]
|
|
filter = 'test(wgpu_gpu::image_atomics::image_32_atomics)'
|
|
platform = 'cfg(target_vendor = "apple")'
|
|
retries = 1
|
|
|
|
[[profile.default.overrides]]
|
|
filter = 'test(compile_fail)'
|
|
slow-timeout = { period = "3m", terminate-after = 2 }
|
|
|
|
[[profile.default.overrides]]
|
|
filter = 'test(~oom_test)'
|
|
threads-required = "num-test-threads"
|
|
|
|
#
|
|
# Priorities for slow tests so that they run first, increasing overall test suite speed.
|
|
# On software renderers, they can take 10-60 seconds. Compile fail can easily take 30+
|
|
# seconds as it has to compile wgpu.
|
|
#
|
|
[[profile.default.overrides]]
|
|
priority = 1
|
|
filter = 'test(clear_texture) | test(clear_buffer_range_respected) | test(compile_fail) | test(test_api)'
|