about summary refs log tree commit diff
path: root/library/test/src/cli.rs
AgeCommit message (Collapse)AuthorLines
2023-01-12Allow setting CFG_DISABLE_UNSTABLE_FEATURES to 0Collin Baker-1/+2
Two locations check whether this build-time environment variable is defined. Allowing it to be explicitly disabled with a "0" value is useful, especially for integrating with external build systems.
2022-12-19Fix `uninlined_format_args` in libtestnils-8/+4
2022-12-01Create a hacky fail-fast mode that stops tests at the first failureOli Scherer-0/+5
2022-10-15Add `IsTerminal` trait to determine if a descriptor or handle is a terminalJosh Triplett-2/+2
The UNIX and WASI implementations use `isatty`. The Windows implementation uses the same logic the `atty` crate uses, including the hack needed to detect msys terminals. Implement this trait for `File` and for `Stdin`/`Stdout`/`Stderr` and their locked counterparts on all platforms. On UNIX and WASI, implement it for `BorrowedFd`/`OwnedFd`. On Windows, implement it for `BorrowedHandle`/`OwnedHandle`. Based on https://github.com/rust-lang/rust/pull/91121 Co-authored-by: Matt Wilkinson <mattwilki17@gmail.com>
2022-07-09Fix binary name in help message for test binariesSmitty-1/+2
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2022-01-30Use `optflag` for `--report-time`Samuel E. Moelius III-11/+3
Essentially, what is described here: https://github.com/rust-lang/rust/issues/64888#issuecomment-1008047228 There is one difference. The comment proposes to add a `--report-time-color` option. This change instead uses libtest's existing `--color` option for that purpose.
2021-09-30Check `allow_unstable` before checking environment variablesSamuel E. Moelius III-2/+2
2021-09-29Implement #85440Samuel E. Moelius III-0/+74
2021-04-25feat(libtest): Add JUnit formatterAndrey Cherkashin-4/+10
2021-02-20Add a chapter on the test harness.Eric Huss-8/+2
2021-02-08Rollup merge of #81356 - ehuss:libtest-filters, r=m-ou-seMara Bos-11/+6
libtest: allow multiple filters Libtest ignores any filters after the first. This changes it so that if multiple filters are passed, it will test against all of them. This also affects compiletest to do the same. Closes #30422
2021-01-24libtest: allow multiple filtersEric Huss-11/+6
2020-12-15stabilise --include-ignoredGiles Cope-1/+1
2020-07-27mv std libs to library/mark-0/+431