Skip to content

Commit dbd2a8f

Browse files
authored
Make symlink tests standalong (#2665)
I.e., make 'julia test/symlinks/tests.jl' work
1 parent 3767476 commit dbd2a8f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/symlinks/tests.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
using Test
12
using Documenter
3+
include("../TestUtilities.jl"); using Main.TestUtilities
24

35
const pages = [
46
"Home" => "index.md",
@@ -9,10 +11,12 @@ const pages = [
911

1012
@testset "Symlinks" begin
1113
# check that the symlinked page is built at all
12-
@test isdir("symlinks/build/other")
13-
@test isfile("symlinks/build/other/index.html")
14+
other = joinpath(@__DIR__, "build", "other")
15+
@test isdir(other)
16+
other_index = joinpath(other, "index.html")
17+
@test isfile(other_index)
1418

1519
# check that it contains what we want
16-
filecontents = read("symlinks/build/other/index.html", String)
20+
filecontents = read(other_index, String)
1721
@test occursin("another test", filecontents)
1822
end

0 commit comments

Comments
 (0)