about summary refs log tree commit diff
path: root/src/libtest
AgeCommit message (Collapse)AuthorLines
2019-02-14Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnikMazdak Farrokhzad-1/+1
Convert old first edition links to current edition one r? @steveklabnik
2019-02-13Convert old doc links to current editionLzu Tao-1/+1
Use footnote style to bypass the tidy check
2019-02-10libs: doc commentsAlexander Regueiro-1/+1
2019-02-07Remove images' url to make it work even without internet connectionGuillaume Gomez-6/+1
2019-02-04Excute rustfmt for fixing tidy checkHirokazu Hata-55/+86
2019-02-04Transition libtest to 2018 editionHirokazu Hata-20/+22
2019-01-27Auto merge of #57765 - Mark-Simulacrum:bootstrap-bump, r=alexcrichtonbors-1/+0
Bump bootstrap compiler to 1.33 beta r? @alexcrichton or @pietroalbini cc @rust-lang/release
2019-01-26Bump bootstrap compiler to 1.33 betaMark Rousskov-1/+0
2019-01-20Add missing #![feature(rustc_private)] annotationIgor Matuszewski-1/+1
2019-01-14Stabilize `cfg_target_vendor`, #29718Jethro Beekman-1/+1
2018-12-31Bound sgx target_env with fortanix as target_vendorYu Ding-2/+4
Signed-off-by: Yu Ding <dingelish@gmail.com>
2018-12-25Remove licensesMark Rousskov-60/+0
2018-12-11Auto merge of #56243 - RalfJung:test-deterministic, r=alexcrichtonbors-15/+27
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-11use an enum instead of boolRalf Jung-12/+17
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-6/+6
2018-12-07Add x86_64-fortanix-unknown-sgx target to libstd and dependenciesJethro Beekman-4/+6
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-11-30proc_macro: move to a dependency of libtest.Eduard-Mihai Burtescu-0/+3
2018-11-27fix libtest test suiteRalf Jung-6/+6
2018-11-27Do not spawn a thread if we do not use concurrencyRalf Jung-5/+8
2018-11-27use deterministic HashMap in libtestRalf Jung-4/+8
2018-10-14add option to libtest to run all testsEmerentius-46/+104
flag name is --include-ignored requires -Zunstable-options for now
2018-10-14refactor filter_testsEmerentius-43/+23
same behaviour, just shorter
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-1/+1
2018-09-24aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest.Michael Woerister-1/+9
2018-09-15Revert "Auto merge of #53527 - Emerentius:test_all, r=nrc"Eduard-Mihai Burtescu-119/+81
This reverts commit 9f53c87b4b1f097e111c9525d60470ed22631018, reversing changes made to cba0fdf43c22795822e1d7c751a69e6c85007221.
2018-09-15Auto merge of #53527 - Emerentius:test_all, r=nrcbors-81/+119
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-11stabalize infer outlives requirements (RFC 2093).toidiu-1/+0
Co-authored-by: nikomatsakis
2018-09-05rename option to run all tests and make it unstableEmerentius-12/+20
new name: --include-ignored requires -Zunstable-options
2018-09-05Auto merge of #53867 - cwndrws:json-test-formatter-test-count-as-num, r=nrcbors-2/+2
Make json test output formatter represent "test_count" as num fixes #53866
2018-09-04Introduce Custom Test FrameworksJohn Renner-2/+4
2018-08-31Make json test output formatter represent "filtered_out" as numCharlie Andrews-1/+1
2018-08-31Make json test output formatter represent "test_count" as numCharlie Andrews-1/+1
2018-08-29Replace usages of 'bad_style' with 'nonstandard_style'.Corey Farwell-1/+1
`bad_style` is being deprecated in favor of `nonstandard_style`: - https://github.com/rust-lang/rust/issues/41646
2018-08-27Auto merge of #53441 - toidiu:ak-fix53419, r=nikomatsakisbors-0/+1
fix for late-bound regions Fix for https://github.com/rust-lang/rust/issues/53419 r? @nikomatsakis
2018-08-26Rollup merge of #53428 - RalfJung:libtest-terse, r=KodrAusGuillaume Gomez-1/+5
libtest terse format: show how far in we are So for example `./x.py test src/libcore` looks like ``` running 881 tests .................................................................................................... 100/881 .................................................................................................... 200/881 .................................................................................................... 300/881 .............................................................i.i.................................... 400/881 .................................................................................................... 500/881 .................................................................................................... 600/881 .................................................................................................... 700/881 .................................................................................................... 800/881 ................................................................................. test result: ok. 879 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out ``` When I am waiting for 3500 ui tests to complete, I am often missing some sense of how far in these 3500 it is. Getting the total count in `write_run_start` is a bit hacky; I did that to not change the "public interface" of the formatters. I can also give them an extra argument in their constructor so that they know from the beginning how many tests there will be. Would you prefer that? (I think I would, but I wanted to get feedback first.)
2018-08-24check that adding infer-outlives requirement to all crates worksNiko Matsakis-0/+1
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-1/+1
or "".into()
2018-08-20commentRalf Jung-1/+1
2018-08-20add option to run all testsEmerentius-46/+96
add --all flag to libtest that runs ignored and not ignored tests
2018-08-20refactor filter_testsEmerentius-43/+23
same behaviour, just shorter
2018-08-16libtest terse format: show how far in we areRalf Jung-1/+5
2018-08-15Rollup merge of #52453 - srijs:fix-52436, r=TimNNGuillaume Gomez-1/+8
improve diagnostics for tests with custom return values This is an attempt at getting the ball rolling to improve the diagnostics for test functions that return custom `impl Termination` values (see #52436). An alternative could be to use `eprintln!`, but including this in the panic message felt nicely consistent with how failing test assertions would be reported. Let me know what you think!
2018-08-11improve diagnostics for tests with custom return valuesSam Rijs-1/+8
fixes #52436
2018-08-09[nll] libtest: enable feature(nll) for bootstrapmemoryruins-0/+1
2018-07-30Auto merge of #52805 - ljedrz:format_str_literal, r=petrochenkovbors-1/+1
Don't format!() string literals Prefer `to_string()` to `format!()` take 2, this time targetting string literals. In some cases (`&format!("...")` -> `"..."`) also removes allocations. Occurences of `format!("")` are changed to `String::new()`.
2018-07-29Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakisbors-2/+1
Misc cleanups
2018-07-28Don't format!() string literalsljedrz-1/+1
2018-07-27Use str::repeatShotaro Yamada-2/+1
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-2/+0
2018-07-12Deny bare trait objects in librustc_target and libtestljedrz-6/+9