Commit Graph

571 Commits

Author SHA1 Message Date
varkor ecd046817b Update getopts to 0.2.19 2019-05-05 10:45:10 +01:00
varkor e72f7e1e56 Update getopts to 0.2.18
This is a proof-of-concept that the dependency unification fix works.
2019-05-02 21:47:14 +01:00
Jacob Greenfield 28ea249ab5 Revert "Auto merge of #57842 - gnzlbg:extract_libtest, r=gnzlbg"
This reverts commit 3eb4890dfe, reversing
changes made to 7a4df3b53d.
2019-04-07 03:16:31 -04:00
gnzlbg f5d6b3af69 Moves test::black_box to core::hint
This changes removes a cyclic dependency between the "test" and "libtest"
crates, where "libtest" depends on "test" for "black_box", but "test" depends on
"libtest" for everything else.

I've chosen the "hint" module because there seems to be enough consensus in the
discussion of RFC2360 that this module is where such an intrinsic would belong,
but this PR does not implement that RFC! (note: if that RFC ever gets merged,
the API, docs, etc. of this API will need to change).

For backwards compatibility reasons I've chosen to also keep the "test" feature
gate for these instead of adding a new feature gate. If we change the feature
gate, we'll potentially all benchmarks, and while that's something that we could
do, it seems unnecessary to do that now - if RFC2360 gets merged, we'll need to
do that anyways.
2019-03-25 11:44:06 +01:00
gnzlbg 46a8beb4b2 Move some bench tests back from libtest 2019-03-20 01:22:19 +01:00
gnzlbg 144bdc6830 Directly reference the roadmap upstream 2019-03-19 13:58:48 +01:00
gnzlbg cf5c360064 Export stats::Summary from libtest 2019-03-19 13:58:48 +01:00
gnzlbg a5e7f0c75b Add missing explicit imports 2019-03-19 13:58:48 +01:00
gnzlbg 25c8f61a9f Move black_box back to rust-lang/libtest and use explicit imports 2019-03-19 13:58:48 +01:00
gnzlbg 008ce99028 Add a README to libtest with a roadmap 2019-03-19 13:58:48 +01:00
gnzlbg 4c38f1928e Allow the staged_api 2019-03-19 13:58:47 +01:00
gnzlbg f2915a6f62 Use feature(test) 2019-03-19 13:58:47 +01:00
gnzlbg 3a9e30f6c9 Use libtest from crates.io 2019-03-19 13:58:47 +01:00
gnzlbg 2957c4c42e Re-export libtest 2019-03-19 13:58:47 +01:00
gnzlbg 95f79380ca Move libtest out of rust-lang/rust 2019-03-19 13:58:47 +01:00
memoryruins 43e7434120 Simplify exclude_should_panic flag. 2019-02-24 11:58:08 -05:00
memoryruins 5d1f100988 Add unstable option to ignore should_panic tests. 2019-02-23 21:07:04 -05:00
Mazdak Farrokhzad aa896f30bb Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnik
Convert old first edition links to current edition one

r? @steveklabnik
2019-02-14 02:41:16 +01:00
Lzu Tao e7f8e63ed4 Convert old doc links to current edition
Use footnote style to bypass the tidy check
2019-02-13 14:39:25 +00:00
Alexander Regueiro 99ed06eb88 libs: doc comments 2019-02-10 23:57:25 +00:00
Guillaume Gomez 8b886e07f5 Remove images' url to make it work even without internet connection 2019-02-07 11:06:19 +01:00
Hirokazu Hata 3c6787306d Excute rustfmt for fixing tidy check 2019-02-04 08:22:30 +09:00
Hirokazu Hata 4ae8abab93 Transition libtest to 2018 edition 2019-02-04 08:15:42 +09:00
bors 8611577360 Auto merge of #57765 - Mark-Simulacrum:bootstrap-bump, r=alexcrichton
Bump bootstrap compiler to 1.33 beta

r? @alexcrichton or @pietroalbini

cc @rust-lang/release
2019-01-27 18:18:17 +00:00
Mark Rousskov b7f030e114 Bump bootstrap compiler to 1.33 beta 2019-01-26 08:02:08 -07:00
Igor Matuszewski c14508fd25 Add missing #![feature(rustc_private)] annotation 2019-01-20 00:04:28 +01:00
Jethro Beekman 972bba7071 Stabilize cfg_target_vendor, #29718 2019-01-14 14:33:04 +05:30
Yu Ding d04f5208ba Bound sgx target_env with fortanix as target_vendor
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-12-31 16:32:56 -08:00
Mark Rousskov 2a663555dd Remove licenses 2018-12-25 21:08:33 -07:00
bors 3499575282 Auto merge of #56243 - RalfJung:test-deterministic, r=alexcrichton
libtest: Use deterministic HashMap, avoid spawning thread if there is no concurrency

It seems desirable to make a test and bench runner deterministic, which this achieves by using a deterministic hasher. Also, we we only have 1 thread, we don't bother spawning one and just use the main thread.

The motivation for this is to be able to run the test harness in miri, where we can neither access the OS RNG, nor spawn threads.
2018-12-11 14:04:15 +00:00
Ralf Jung c28c28779c use an enum instead of bool 2018-12-11 11:02:23 +01:00
Alexander Regueiro ee89c088b0 Various minor/cosmetic improvements to code 2018-12-07 23:53:34 +00:00
Jethro Beekman 4a3505682e Add x86_64-fortanix-unknown-sgx target to libstd and dependencies
The files src/libstd/sys/sgx/*.rs are mostly copied/adapted from
the wasm target.

This also updates the dlmalloc submodule to the very latest version.
2018-12-07 11:26:50 +05:30
Eduard-Mihai Burtescu 67afeef9e4 proc_macro: move to a dependency of libtest. 2018-11-30 06:15:20 +02:00
Ralf Jung 3e9cf3303e fix libtest test suite 2018-11-27 13:59:19 +01:00
Ralf Jung e9caa8ed91 Do not spawn a thread if we do not use concurrency 2018-11-27 13:59:19 +01:00
Ralf Jung f460eac66e use deterministic HashMap in libtest 2018-11-27 13:59:19 +01:00
Emerentius 420541bc78 add option to libtest to run all tests
flag name is --include-ignored
requires -Zunstable-options for now
2018-10-14 00:58:17 +02:00
Emerentius 68b596408d refactor filter_tests
same behaviour, just shorter
2018-10-14 00:57:50 +02:00
Josh Stone ce034951fb Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
Michael Woerister f2bf92a4e8 aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest. 2018-09-24 14:37:09 +02:00
Eduard-Mihai Burtescu bde0a54737 Revert "Auto merge of #53527 - Emerentius:test_all, r=nrc"
This reverts commit 9f53c87b4b, reversing
changes made to cba0fdf43c.
2018-09-15 22:48:38 +03:00
bors 9f53c87b4b Auto merge of #53527 - Emerentius:test_all, r=nrc
Add option to run all tests

This adds the "--include-ignored" flag to libtest, which allows running ignored and unignored tests in one go.

Closes #50363
2018-09-15 15:01:51 +00:00
toidiu 731f4efae5 stabalize infer outlives requirements (RFC 2093).
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Emerentius f6f3228c5f rename option to run all tests and make it unstable
new name: --include-ignored
requires -Zunstable-options
2018-09-05 18:36:20 +02:00
bors b0297f3043 Auto merge of #53867 - cwndrws:json-test-formatter-test-count-as-num, r=nrc
Make json test output formatter represent "test_count" as num

fixes #53866
2018-09-05 09:57:56 +00:00
John Renner 9b27de41d4 Introduce Custom Test Frameworks 2018-09-04 22:33:00 -07:00
Charlie Andrews b9de64a0e6 Make json test output formatter represent "filtered_out" as num 2018-08-31 14:57:19 -05:00
Charlie Andrews 347c6b76a0 Make json test output formatter represent "test_count" as num 2018-08-31 14:42:01 -05:00
Corey Farwell e477a13d63 Replace usages of 'bad_style' with 'nonstandard_style'.
`bad_style` is being deprecated in favor of `nonstandard_style`:

- https://github.com/rust-lang/rust/issues/41646
2018-08-29 09:01:35 -05:00