Files
JuliaFEM.jl/test/runtests.jl
T
Jukka Aho 79170fcf23 Use package HeatTransfer.jl for heat problems (#194)
Heat transfer analysis is moved to its own package where the development continues. Two small modifications are needed for test files:

- Instead of `problem.properties.formulation`, we have two separate problems, `PlaneHeat` for two-dimensional problems and `Heat` for three-dimensional problems.
- Unnecessary prefixing of field names is changed. For example, now we simply have only "thermal conductivity" and not prefixed "temperature thermal conductivity".
2018-05-03 15:37:37 +03:00

30 lines
842 B
Julia

# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using Base.Test
using TimerOutputs
pkg_dir = dirname(@__DIR__)
maybe_test_files = readdir(joinpath(pkg_dir, "test"))
is_test_file(fn) = startswith(fn, "test_") & endswith(fn, ".jl")
test_files = filter(is_test_file, maybe_test_files)
info("$(length(test_files)) test files found.")
const to = TimerOutput()
@testset "JuliaFEM.jl" begin
for fn in test_files
info("----- Running tests from file $fn -----")
t0 = time()
@testset "$fn" begin
timeit(to, fn) do
include(fn)
end
end
dt = round(time() - t0, 2)
info("----- Testing file $fn completed in $dt seconds -----")
end
end
println()
println("Test statistics:")
println(to)