about summary refs log tree commit diff
path: root/src/compiletest/header.rs
AgeCommit message (Collapse)AuthorLines
2016-04-18rustbuild: Add support for compiletest test suitesAlex Crichton-455/+0
This commit adds support in rustbuild for running all of the compiletest test suites as part of `make check`. The `compiletest` program was moved to `src/tools` (like `rustbook` and others) and is now just compiled like any other old tool. Each test suite has a pretty standard set of dependencies and just tweaks various parameters to the final compiletest executable. Note that full support is lacking in terms of: * Once a test suite has passed, that's not remembered. When a test suite is requested to be run, it's always run. * The arguments to compiletest probably don't work for every possible combination of platforms and testing environments just yet. There will likely need to be future updates to tweak various pieces here and there. * Cross compiled test suites probably don't work just yet, support for that will come in a follow-up patch.
2016-03-17compiletest: Add rustc-env for run-pass/super-fast-paren-parsing.Eduard Burtescu-3/+10
2016-03-02rename should-panic to should-fail, per acrichto's suggestionNiko Matsakis-5/+5
2016-03-02make it possible for a test to declare `should-panic`Niko Matsakis-26/+42
and write a really basic "meta test" of the compilertest framework
2016-03-02refactor and generalize revisionsNiko Matsakis-11/+0
2016-03-01introduce the notion of revisions, currently unusedNiko Matsakis-5/+51
a test file may specify `// revisions: foo bar baz` headers and expected errors may be made specific to a revision by writing `//[foo] header` or `//[foo]~ ERROR`
2016-03-01change compile_flags to eagerly split into a vector on whitespaceNiko Matsakis-5/+7
2016-03-01refactor header parsing so it can work "in-place"Niko Matsakis-62/+64
2016-03-01require that header lines begin with `//`Niko Matsakis-2/+3
2015-12-03Add a `build-aux-docs` directive to compiletestmitaa-0/+12
This flag causes the documentation for all `aux-build` files to be built, which happens prior to running/building the parent test.
2015-09-01refactored compiletest following clippy's suggestionsllogiq-65/+56
2015-04-27compiletest: Add support for `// ignore-musl`Alex Crichton-0/+4
Add the ability to ignore a test based on the environment of the triple being used.
2015-04-01std: Changing the meaning of the count to splitnAlex Crichton-1/+1
This commit is an implementation of [RFC 979][rfc] which changes the meaning of the count parameter to the `splitn` function on strings and slices. The parameter now means the number of items that are returned from the iterator, not the number of splits that are made. [rfc]: https://github.com/rust-lang/rfcs/pull/979 Closes #23911 [breaking-change]
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-5/+5
Now that support has been removed, all lingering use cases are renamed.
2015-03-23rollup merge of #23598: brson/gateAlex Crichton-9/+10
Conflicts: src/compiletest/compiletest.rs src/libcollections/lib.rs src/librustc_back/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/libtest/lib.rs src/test/run-make/rustdoc-default-impl/foo.rs src/test/run-pass/env-home-dir.rs
2015-03-23Add generic conversion traitsAaron Turon-2/+2
This commit: * Introduces `std::convert`, providing an implementation of RFC 529. * Deprecates the `AsPath`, `AsOsStr`, and `IntoBytes` traits, all in favor of the corresponding generic conversion traits. Consequently, various IO APIs now take `AsRef<Path>` rather than `AsPath`, and so on. Since the types provided by `std` implement both traits, this should cause relatively little breakage. * Deprecates many `from_foo` constructors in favor of `from`. * Changes `PathBuf::new` to take no argument (creating an empty buffer, as per convention). The previous behavior is now available as `PathBuf::from`. * De-stabilizes `IntoCow`. It's not clear whether we need this separate trait. Closes #22751 Closes #14433 [breaking-change]
2015-03-23rustdoc: Replace no-pretty-expanded with pretty-expandedBrian Anderson-9/+10
Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-20Auto merge of #23471 - sae-bom:aarch64-linux-android, r=alexcrichtonbors-0/+4
Resolved #21773. (Aarch64 test has been broken again) r? @alexcrichton
2015-03-19RUST_TEST_TASKS -> RUST_TEST_THREADSSteve Klabnik-1/+1
We don't use 'task' anymore, these are now threads. Because this changes the name of a compiler option, this is [breaking-change]
2015-03-19Ignore some tests on aarch64 to pass the run-pass test on aarch64-linux-androidSae-bom Kim-0/+4
2015-03-04std: Deprecate std::old_io::fsAlex Crichton-12/+12
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
2015-02-23Rollup merge of #22371 - fhahn:issue-17829-compiletest-nocapture, r=ManishearthManish Goregaokar-0/+12
This is a patch for #17829. In `compiletest` there are multiple layers which capture the output. The first layer is `run_tests_console` which is used to execute all tests. Then there are some tests that contain unit tests, which by default also captures output. Therefore `compiletest` adds `RUST_TEST_NOCAPTURE` (and `RUST_TEST_TASKS` for completeness) to the run environment of the task. Finally, the task used to execute a test redirects stdout and stdin. At the moment, the `VERBOSE=1` prints all captured output of the task (but has to print stdout and stderr separately). So at the moment using `RUST_TEST_NOCAPTURE=1` only makes sense when also using `VERBOSE=1` which seems a little bit cumbersome. Should I update the patch to only print the output of the tasks that actually execute the test (`VERBOSE=1` includes other stuff, like the output of the task used to compile the test)? This will probably involve adding an extra flag to some functions in `src/compiletest/runtest.rs` to distinguish compilation runs from runs that execute the actual tests.
2015-02-20Addressed PR commentsMarvin Löbel-1/+1
2015-02-16Handle RUST_TEST_NOCAPTURE in compiletest and set add if to run envFlorian Hahn-0/+12
closes #17829
2015-02-05cleanup: replace `as[_mut]_slice()` calls with deref coercionsJorge Aparicio-14/+14
2015-02-02More deprecating of i/u suffixesAlfie John-2/+2
2015-01-30std: Stabilize FromStr and parseAlex Crichton-3/+3
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes #15138
2015-01-27cleanup: s/`v.slice*()`/`&v[a..b]`/g + remove redundant `as_slice()` callsJorge Aparicio-4/+4
2015-01-26Fallout of io => old_ioAlex Crichton-1/+1
2015-01-21Fallout from stabilization.Aaron Turon-2/+1
2015-01-09Revert "Ignore extra error from test for now"Manish Goregaokar-13/+0
This reverts commit 6342aa62efd1b3aa7e1bc8f834f317290b11c519.
2015-01-08Ignore extra error from test for nowManish Goregaokar-0/+13
2015-01-05compiletest: remove boxed closuresJorge Aparicio-1/+3
2014-12-21Fallout of std::str stabilizationAlex Crichton-3/+3
2014-11-16Move FromStr to core::strBrendan Zabarauskas-5/+3
2014-10-29Rename fail! to panic!Steve Klabnik-2/+2
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-10-08debuginfo: Add LLDB version handling to test infrastructure.Michael Woerister-1/+38
2014-09-17Add a forbid-output property in cfail testsKeegan McAllister-1/+14
2014-08-27debuginfo: Emit different autotest debugger scripts depending on GDB version.Michael Woerister-15/+54
2014-08-13core: Change the argument order on splitn and rsplitn for strs.Brian Anderson-1/+1
This makes it consistent with the same functions for slices, and allows the search closure to be specified last. [breaking-change]
2014-07-29Add pretty=typed test support to compiletest and add a test for fixed size ↵Luqman Aden-0/+24
arrays.
2014-06-25compiletest: Remove superfluous to_string callsPiotr Jawniak-8/+8
2014-05-28std: Remove format_strbuf!()Alex Crichton-4/+4
This was only ever a transitionary macro.
2014-05-27std: Rename strbuf operations to stringRicho Healey-10/+10
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-17/+17
[breaking-change]
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-2/+7
2014-05-16compiletest: Remove all uses of `~str` from `compiletest`Patrick Walton-39/+50
2014-05-13Touch up and rebase previous commitsAlex Crichton-0/+12
* Added `// no-pretty-expanded` to pretty-print a test, but not run it through the `expanded` variant. * Removed #[deriving] and other expanded attributes after they are expanded * Removed hacks around &str and &&str and friends (from both the parser and the pretty printer). * Un-ignored a bunch of tests
2014-05-13compiletest: Modernize typenamesklutzy-5/+5
2014-05-07debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldbMichael Woerister-14/+1