about summary refs log tree commit diff
path: root/src/libtest/lib.rs
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-16/+17
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-10/+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-4/+4
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-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-04Introduce Custom Test FrameworksJohn Renner-1/+2
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-24check that adding infer-outlives requirement to all crates worksNiko Matsakis-0/+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-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
2018-04-16Add rustdoc-ui test suiteGuillaume Gomez-1/+0
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-03-21Cargo fmt libtestSeiichi Uchida-180/+145
2018-03-10add stub for retrieving number of CPUsSebastian Humenda-0/+6
2018-02-23re-export `assert_test_result` for use when testing libtest itselfNiko Matsakis-2/+2
2018-02-22move Termination trait to std::processNiko Matsakis-1/+1
2018-02-22put the "unit test" logic into libtestNiko Matsakis-0/+9
Also make `std::termination` module public and rename feature. The lib feature needs a different name from the language feature.
2018-02-04libtest: Replace panics with error messagesGilad Naaman-4/+13
2018-01-26libtest: Failing benchmarks no longer crash the harness.Gilad Naaman-37/+91