rust/src/liballoc
bors 4ec5ce5e44 Auto merge of #33282 - alexcrichton:rustbuild-crate-tests, r=brson
rustbuild: Add support for crate tests + doctests

This commit adds support to rustbuild to run crate unit tests (those defined by
`#[test]`) as well as documentation tests. All tests are powered by `cargo test`
under the hood.

Each step requires the `libtest` library is built for that corresponding stage.
Ideally the `test` crate would be a dev-dependency, but for now it's just easier
to ensure that we sequence everything in the right order.

Currently no filtering is implemented, so there's not actually a method of
testing *only* libstd or *only* libcore, but rather entire swaths of crates are
tested all at once.

A few points of note here are:

* The `coretest` and `collectionstest` crates are just listed as `[[test]]`
  entires for `cargo test` to naturally pick up. This mean that `cargo test -p
  core` actually runs all the tests for libcore.
* Libraries that aren't tested all mention `test = false` in their `Cargo.toml`
* Crates aren't currently allowed to have dev-dependencies due to
  rust-lang/cargo#860, but we can likely alleviate this restriction once
  workspaces are implemented.

cc #31590
2016-05-12 14:31:54 -07:00
..
arc.rs Rollup merge of #32741 - tbu-:pr_remove_fixme_12808, r=bluss 2016-04-07 23:26:19 +05:30
boxed.rs alloc: Add unstable issue for FnBox APIs 2016-03-11 22:09:58 -08:00
boxed_test.rs Fix warnings during tests 2016-01-26 09:29:28 -08:00
Cargo.toml rustbuild: Add support for crate tests + doctests 2016-05-12 08:52:20 -07:00
heap.rs Synthesize calls to box_free language item 2016-02-04 15:56:01 +02:00
lib.rs Change Arc to use compare_exchange instead of compare_and_swap 2016-03-31 13:15:20 +01:00
oom.rs Add set_oom_handler and use it print a message when out of memory 2016-01-12 01:55:45 +00:00
raw_vec.rs Inline RawVec::cap 2016-05-09 11:44:55 -07:00
rc.rs Remove strange names created by lack of privacy-conscious name lookup 2016-04-05 11:41:48 +02:00