-
-
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
Closed
Closed
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3510df9
Trial run of using testsets for Base
kshyatt 5da10b5
Spread out dates tests, can now run in parallel yay
kshyatt 7d38fb9
Pass ints back if all tests pass, update tests to work more
kshyatt 17637fc
Added throw at outermost testset
kshyatt 41bba34
Wrapped more dates tests in modules to stop namespace pollution
kshyatt 22fd4ae
Cleanup of infrastructure files
kshyatt c08ca0e
Add test_exec.jl to test FallbackTestset
kshyatt 27262ac
Fix spacing in test/math
kshyatt f8413b7
add commented-out end to match testset SSH
tkelman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ Upon return, `tests` is a vector of fully-expanded test names, and | |
function choosetests(choices = []) | ||
testnames = [ | ||
"linalg", "subarray", "core", "inference", "keywordargs", "numbers", | ||
"printf", "char", "string", "triplequote", "unicode", | ||
"printf", "char", "strings", "triplequote", "unicode", | ||
"dates", "dict", "hashing", "iobuffer", "staged", "offsetarray", | ||
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. offsetarray probably shouldn't be deleted |
||
"arrayops", "tuple", "reduce", "reducedim", "random", "abstractarray", | ||
"intfuncs", "simdloop", "vecelement", "blas", "sparse", | ||
|
@@ -60,6 +60,57 @@ function choosetests(choices = []) | |
tests = testnames | ||
end | ||
|
||
datestests = ["dates/accessors", "dates/adjusters", "dates/query", | ||
"dates/periods", "dates/ranges", "dates/rounding", "dates/types", | ||
"dates/io", "dates/arithmetic", "dates/conversions"] | ||
if "dates" in skip_tests | ||
filter!(x -> (x != "dates" && !(x in datestests)), tests) | ||
elseif "dates" in tests | ||
# specifically selected case | ||
filter!(x -> x != "dates", tests) | ||
prepend!(tests, datestests) | ||
end | ||
|
||
unicodetests = ["unicode/UnicodeError", "unicode/utf8proc", "unicode/utf8"] | ||
if "unicode" in skip_tests | ||
filter!(x -> (x != "unicode" && !(x in unicodetests)), tests) | ||
elseif "unicode" in tests | ||
# specifically selected case | ||
filter!(x -> x != "unicode", tests) | ||
prepend!(tests, unicodetests) | ||
end | ||
|
||
stringtests = ["strings/basic", "strings/search", "strings/util", | ||
"strings/io", "strings/types"] | ||
if "strings" in skip_tests | ||
filter!(x -> (x != "strings" && !(x in stringtests)), tests) | ||
elseif "strings" in tests | ||
# specifically selected case | ||
filter!(x -> x != "strings", tests) | ||
prepend!(tests, stringtests) | ||
end | ||
|
||
|
||
sparsetests = ["sparse/sparse", "sparse/sparsevector"] | ||
if Base.USE_GPL_LIBS | ||
append!(sparsetests, ["sparse/umfpack", "sparse/cholmod", "sparse/spqr"]) | ||
end | ||
if "sparse" in skip_tests | ||
filter!(x -> (x != "sparse" && !(x in sparsetests)), tests) | ||
elseif "sparse" in tests | ||
# specifically selected case | ||
filter!(x -> x != "sparse", tests) | ||
prepend!(tests, sparsetests) | ||
end | ||
|
||
#do subarray before sparse but after linalg | ||
if "subarray" in skip_tests | ||
filter!(x -> x != "subarray", tests) | ||
elseif "subarray" in tests | ||
filter!(x -> x != "subarray", tests) | ||
prepend!(tests, ["subarray"]) | ||
end | ||
|
||
linalgtests = ["linalg/triangular", "linalg/qr", "linalg/dense", | ||
"linalg/matmul", "linalg/schur", "linalg/special", | ||
"linalg/eigen", "linalg/bunchkaufman", "linalg/svd", | ||
|
@@ -83,7 +134,7 @@ function choosetests(choices = []) | |
net_required_for = ["socket", "parallel", "libgit2"] | ||
net_on = true | ||
try | ||
getipaddr() | ||
ipa = getipaddr() | ||
catch | ||
warn("Networking unavailable: Skipping tests [" * join(net_required_for, ", ") * "]") | ||
net_on = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Isn't
using Base.Test
redundant withusing Base: Test
?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.
Derp, yes. Thanks!