-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Help wanted: switch Base.Test to use testsets everywhere #17165
Changes from 1 commit
3510df9
5da10b5
7d38fb9
17637fc
41bba34
22fd4ae
c08ca0e
27262ac
f8413b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# This file is a part of Julia. License is MIT: http://julialang.org/license | ||
|
||
module TestBroadcastInternals | ||
|
||
using Base.Broadcast: broadcast_indices, check_broadcast_indices, | ||
check_broadcast_shape, newindex, _bcs, _bcsm | ||
using Base: Test, OneTo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Derp, yes. Thanks! |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,10 @@ function choosetests(choices = []) | |
net_required_for = ["socket", "parallel", "libgit2"] | ||
net_on = true | ||
try | ||
getipaddr() | ||
ipa = getipaddr() | ||
if ipa == ip"127.0.0.1" | ||
net_on = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think |
||
end | ||
catch | ||
warn("Networking unavailable: Skipping tests [" * join(net_required_for, ", ") * "]") | ||
net_on = false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,3 +458,4 @@ end) == 251 | |
end | ||
return sum == 15 | ||
end) == 15 # On average, there's one of those months every year | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,3 +171,4 @@ ms = Dates.Millisecond(1) | |
|
||
@test isfinite(Dates.Date) | ||
@test isfinite(Dates.DateTime) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,4 +86,3 @@ if !zmq_found | |
end | ||
|
||
include(joinpath(dir, "clustermanager/0mq/ZMQCM.jl")) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,4 @@ | |
@test [0,1] ≈ [1e-9, 1] | ||
@test [0,Inf] ≈ [0,Inf] | ||
@test [0,Inf] ≉ [0,-Inf] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats happening here now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed things so that now only the King of the Nodes outputs anything. Otherwise we were getting horrendous looking spam from each worker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So am I reading this right: if I'm just a general package, and I'm using Base.Test, there will be no output from test sets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can dump it explicitly with
Base.Test.print_test_results(Base.Test.get_testset())
but yeah, it would be silent unless things fail. There's a reason I put WIP on this. I wish I could put bold in titles: WIP. Ideally I think we'd have averbose/quiet
flag you could pass depending if you want output or not. It would be good to just let packages usetest/runtests.jl
themselves, rather than hacking their own weird fake parallel testing together like happens now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. I was thinking that the solution for the Base testing setting would be making a different kind of test set, or as you say, maybe
DefaultTestSet
can have an option.