Skip to content

Commit cef46af

Browse files
authored
Split up long-running tests for better load balancing (#2662)
* Split up `test/rules/internal_rules.jl` * Split up `test/tests.jl`
1 parent 53695b2 commit cef46af

File tree

8 files changed

+3416
-3427
lines changed

8 files changed

+3416
-3427
lines changed

test/advanced.jl

Lines changed: 1792 additions & 0 deletions
Large diffs are not rendered by default.

test/basic.jl

Lines changed: 880 additions & 0 deletions
Large diffs are not rendered by default.

test/doctests.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Enzyme
2+
using Documenter
3+
using Test
4+
5+
DocMeta.setdocmeta!(Enzyme, :DocTestSetup, :(using Enzyme); recursive = true)
6+
7+
@testset "DocTests" begin
8+
doctest(Enzyme; manual = false)
9+
end

test/multi-threads.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using Test
2+
3+
@testset "Threads" begin
4+
cmd = `$(Base.julia_cmd()) --threads=1 --startup-file=no threads.jl`
5+
@test success(pipeline(cmd, stderr = stderr, stdout = stdout))
6+
cmd = `$(Base.julia_cmd()) --threads=2 --startup-file=no threads.jl`
7+
@test success(pipeline(cmd, stderr = stderr, stdout = stdout))
8+
end

0 commit comments

Comments
 (0)