|
17 | 17 | end
|
18 | 18 |
|
19 | 19 | for (title,filename) in files
|
20 |
| - # Create temporal modules to isolate and protect test scopes |
21 |
| - tmpdir=mktempdir(;cleanup=true) |
22 |
| - filename_wo_extension=split(filename,".")[1] |
23 |
| - tmpmod = filename_wo_extension |
24 |
| - tmpfile = joinpath(tmpdir,tmpmod) |
25 |
| - isfile(tmpfile) && error("File $tmpfile already exists!") |
26 |
| - testpath = joinpath(@__DIR__,"../src", filename) |
27 |
| - open(tmpfile,"w") do f |
28 |
| - println(f, "# This file is automatically generated") |
29 |
| - println(f, "# Do not edit") |
30 |
| - println(f) |
31 |
| - println(f, "module $tmpmod include(\"$testpath\") end") |
32 |
| - end |
33 |
| - @time @testset "$title" begin include(tmpfile) end |
| 20 | + # Create temporal modules to isolate and protect test scopes |
| 21 | + tmpdir = mktempdir(;cleanup=true) |
| 22 | + tmpmod = split(filename,".")[1] |
| 23 | + tmpfile = joinpath(tmpdir,tmpmod) |
| 24 | + isfile(tmpfile) && error("File $tmpfile already exists!") |
| 25 | + testpath = joinpath(@__DIR__,"../src", filename) |
| 26 | + open(tmpfile,"w") do f |
| 27 | + println(f, "# This file is automatically generated") |
| 28 | + println(f, "# Do not edit") |
| 29 | + println(f) |
| 30 | + println(f, "module $tmpmod include(\"$testpath\") end") |
| 31 | + end |
| 32 | + @time @testset "$title" begin include(tmpfile) end |
34 | 33 | end
|
35 |
| - |
36 |
| -# module fsi_tutorial |
37 |
| -# using Test |
38 |
| -# @time @testset "fsi_tutorial" begin include("../src/fsi_tutorial.jl") end |
39 |
| -# end # module |
0 commit comments