Skip to content

Commit

Permalink
Merge pull request #22 from CliMA/ck/organize
Browse files Browse the repository at this point in the history
Move tests into subfolders
  • Loading branch information
charleskawczynski authored May 1, 2024
2 parents 2f2b6cc + 982c2e5 commit 42a9bae
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion perf/flame.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Revise; include(joinpath("perf", "flame.jl"))
=#

import MultiBroadcastFusion as MBF
include(joinpath(pkgdir(MBF), "test", "utils.jl"))
include(joinpath(pkgdir(MBF), "test", "execution", "utils.jl"))

# ===========================================

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions test/collection/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#=
using Revise; include(joinpath("test", "collection", "runtests.jl"))
=#
using Test
using SafeTestsets

#! format: off
@safetestset "expr_code_lowered_single_expression" begin; @time include("expr_code_lowered_single_expression.jl"); end
@safetestset "expr_materialize_args" begin; @time include("expr_materialize_args.jl"); end
@safetestset "expr_fused_pairs" begin; @time include("expr_fused_pairs.jl"); end
@safetestset "expr_errors_and_edge_cases" begin; @time include("expr_errors_and_edge_cases.jl"); end
#! format: on
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions test/execution/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#=
using Revise; include(joinpath("test", "execution", "runtests.jl"))
=#

#! format: off
@safetestset "fused_shared_reads" begin; @time include("bm_fused_shared_reads.jl"); end
@safetestset "fused_shared_reads_writes" begin; @time include("bm_fused_shared_reads_writes.jl"); end
@safetestset "bm_fused_reads_vs_hard_coded" begin; @time include("bm_fused_reads_vs_hard_coded.jl"); end
#! format: on
File renamed without changes.
16 changes: 4 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#=
using Revise; include(joinpath("test", "collection", "runtests.jl"))
using Revise; include(joinpath("test", "execution", "runtests.jl"))
using Revise; include(joinpath("test", "runtests.jl"))
=#
using Test
using SafeTestsets

#! format: off
@safetestset "expr_code_lowered_single_expression" begin; @time include("expr_code_lowered_single_expression.jl"); end
@safetestset "expr_materialize_args" begin; @time include("expr_materialize_args.jl"); end
@safetestset "expr_fused_pairs" begin; @time include("expr_fused_pairs.jl"); end
@safetestset "expr_errors_and_edge_cases" begin; @time include("expr_errors_and_edge_cases.jl"); end

@safetestset "fused_shared_reads" begin; @time include("bm_fused_shared_reads.jl"); end
@safetestset "fused_shared_reads_writes" begin; @time include("bm_fused_shared_reads_writes.jl"); end
@safetestset "bm_fused_reads_vs_hard_coded" begin; @time include("bm_fused_reads_vs_hard_coded.jl"); end
#! format: on
include(joinpath("collection", "runtests.jl"))
include(joinpath("execution", "runtests.jl"))

0 comments on commit 42a9bae

Please sign in to comment.