@testsnippet TreeMesh3DLinearizedEuler begin
    EXAMPLES_DIR = joinpath(examples_dir(), "tree_3d_dgsem")
end

@testitem "TreeMesh3D LinearizedEuler: elixir_linearizedeuler_gauss_wall.jl" setup=[
    Setup,
    TreeMesh3DLinearizedEuler
] tags=[:tree_part4] begin
    @test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_linearizedeuler_gauss_wall.jl"),
                        l2=[
                            0.020380328336745232, 0.027122442311921492,
                            0.02712244231192152, 8.273108096127844e-17,
                            0.020380328336745232
                        ],
                        linf=[
                            0.2916021983572774, 0.32763703462270843,
                            0.32763703462270855, 1.641012595221666e-15,
                            0.2916021983572774
                        ],
                        tspan=(0.0, 1.0))

    # Ensure that we do not have excessive memory allocations
    # (e.g., from type instabilities)
    @test_allocations(Trixi.rhs_hyperbolic!, semi, sol, 1000)
end
