Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract tests from libcore to a separate crate
Libcore's test infrastructure is complicated by the fact that many lang items are defined in the crate. The current approach (realcore/realstd imports) is hacky and hard to work with (tests inside of core::cmp haven't been run for months!). Moving tests to a separate crate does mean that they can only test the public API of libcore, but I don't feel that that is too much of an issue. The only tests that I had to get rid of were some checking the various numeric formatters, but those are also exercised through normal format! calls in other tests.
- Loading branch information
Showing
60 changed files
with
3,348 additions
and
3,339 deletions.
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
Oops, something went wrong.
1ed646e
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.
saw approval from alexcrichton
at sfackler@1ed646e
1ed646e
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.
merging sfackler/rust/coretest = 1ed646e into auto
1ed646e
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.
sfackler/rust/coretest = 1ed646e merged ok, testing candidate = bb5695b
1ed646e
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.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/103
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/104
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/104
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/104
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/107
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/107
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/113
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/108
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/107
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/110
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/108
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/107
1ed646e
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.
fast-forwarding master to auto = bb5695b