forked from JuliaWeb/HTTP.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtests.jl
40 lines (36 loc) · 1.01 KB
/
runtests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Test, HTTP, JSON
const dir = joinpath(dirname(pathof(HTTP)), "..", "test")
const httpbin = get(ENV, "JULIA_TEST_HTTPBINGO_SERVER", "httpbingo.julialang.org")
isok(r) = r.status == 200
include(joinpath(dir, "resources/TestRequest.jl"))
@testset "HTTP" begin
for f in [
"ascii.jl",
"chunking.jl",
"utils.jl",
"client.jl",
"multipart.jl",
"parsemultipart.jl",
"sniff.jl",
"cookies.jl",
"parser.jl",
"loopback.jl",
"websockets/deno_client/server.jl",
"websockets/autobahn.jl",
"messages.jl",
"handlers.jl",
"server.jl",
"async.jl",
"mwe.jl",
"try_with_timeout.jl",
"httpversion.jl",
]
file = joinpath(dir, f)
println("Running $file tests...")
if isfile(file)
include(file)
else
@show readdir(dirname(file))
end
end
end