about summary refs log tree commit diff
path: root/src/test/run-make
AgeCommit message (Collapse)AuthorLines
2016-05-09Rollup merge of #33474 - frewsxcv:unwrap-err, r=alexcrichtonManish Goregaokar-1/+1
Utilize `Result::unwrap_err` in more places. None
2016-05-09Utilize `Result::unwrap_err` in more places.Corey Farwell-1/+1
2016-05-09Add test to ensure that atomic types are lock-freeAmanieu d'Antras-0/+92
2016-05-09Fix fallout in `librustdoc` and in testsJeffrey Seyfried-5/+10
2016-05-02Auto merge of #32756 - nikomatsakis:borrowck-snippet, r=nrcbors-28/+0
Overhaul borrowck error messages and compiler error formatting generally This is a major overhaul of how the compiler reports errors. The primary goal is to be able to give many spans within the same overall context, such as this: ``` ./borrow-errors.rs:73:17: 73:20: error: cannot borrow `*vec` as immutable because previous closure requires unique access [E0501] 70 let append = |e| { ~~~ closure construction occurs here 71 vec.push(e) ~~~ previous borrow occurs due to use of `vec` in closure 72 }; 73 let data = &vec[3]; ~~~ borrow occurs here 74 } ~ borrow from closure ends here ``` However, in the process we made a number of other changes: - Removed the repetitive filenames from snippets and just give the line number. - Color the line numbers blue so they "fade away" - Remove the file name and line number from the error code suggestions since they don't seem to fit anymore. (This should probably happen in more places, like existing notes.) - Newlines in between errors to help group them better. This PR is not quite ready to land, but we thought it made sense to stop here and get some feedback from people at large. It'd be great if people can check out the branch and play with it. We'd be especially interested in hearing about cases that don't look good with the new formatting (I suspect they exist). Here is a checklist of some pending work items for this PR. Some of them may be best left for follow-up PRs: - [x] Accommodate multiple files in a `MultiSpan` (this should be easy) - In this case, we want to print filenames though. - [x] Remove duplicate E0500 code. - [x] Make the header message bold, rather than current hack that makes all errors/warnings bold - [x] Update warning text color (yellow is hard to read w/ a white background) Moved numerous follow-ups to: https://github.com/rust-lang/rust/issues/33240 Joint work with @jonathandturner. Fixes https://github.com/rust-lang/rust/issues/3533
2016-05-02fix built-in target detectionJorge Aparicio-0/+14
previously the logic was accepting wrong triples (like `x86_64_unknown-linux-musl`) as valid ones (like `x86_64-unknown-linux-musl`) if they contained an underscore instead of a dash. fixes #33329
2016-05-02Auto merge of #32386 - brandonedens:llvm_min_size, r=alexcrichtonbors-0/+10
Add CodeGen options to optimize for size. Add CodeGen options to annotate functions with the attributes OptimizeSize and/or MinSize used by LLVM to reduce .text size. Closes #32296
2016-05-02Fix unicode test to use original error formatjonathandturner-17/+15
2016-05-02rewrite span-length to include stringsNiko Matsakis-15/+17
It is way easier to copy-and-paste strings from the output than to figure out how to reproduce them from first principles.
2016-05-02delete the json-errors testNiko Matsakis-28/+0
It's primary purpose was to check that json worked at all, but compiletest does that now.
2016-04-28Auto merge of #33093 - alexcrichton:rustbuild-rmake, r=nikomatsakisbors-2/+2
test: Move run-make tests into compiletest Forcing them to be embedded in makefiles precludes being able to run them in rustbuild, and adding them to compiletest gives us a great way to leverage future enhancements to our "all encompassing test suite runner" as well as just moving more things into Rust. All tests are still Makefile-based in the sense that they rely on `make` being available to run them, but there's no longer any Makefile-trickery to run them and rustbuild can now run them out of the box as well.
2016-04-28Add opt-level=s and opt-level=z tests to the existing tests that confirm properBrandon Edens-0/+10
compiler of other opt-levels.
2016-04-28test: Move run-make tests into compiletestAlex Crichton-2/+2
Forcing them to be embedded in makefiles precludes being able to run them in rustbuild, and adding them to compiletest gives us a great way to leverage future enhancements to our "all encompassing test suite runner" as well as just moving more things into Rust. All tests are still Makefile-based in the sense that they rely on `make` being available to run them, but there's no longer any Makefile-trickery to run them and rustbuild can now run them out of the box as well.
2016-04-26save-analysis: expand smoke test to cover json and csv formatsNick Cameron-0/+1
2016-04-22Merge remote-tracking branch 'rust-lang/master' into compiletest-jsonJonathan Turner-4/+8
2016-04-22Auto merge of #33089 - nrc:hir-name-res, r=eddybbors-4/+8
Move def id collection and extern crate handling to before AST->HIR lowering r? @jseyfried, @eddyb, or @nikomatsakis
2016-04-21port compiletest to use JSON outputNiko Matsakis-2/+5
This uncovered a lot of bugs in compiletest and also some shortcomings of our existing JSON output. We had to add information to the JSON output, such as suggested text and macro backtraces. We also had to fix various bugs in the existing tests. Joint work with jntrnr.
2016-04-20Auto merge of #31709 - ranma42:target_feature-from-llvm, r=alexcrichtonbors-0/+1
Compute `target_feature` from LLVM This is a work-in-progress fix for #31662. The logic that computes the target features from the command line has been replaced with queries to the `TargetMachine`.
2016-04-20rebasingNick Cameron-1/+1
2016-04-20debugging, misc fixesNick Cameron-4/+8
2016-04-19Make data-layout mandatory in target specs.Eduard Burtescu-0/+1
2016-04-14Deduplicate libraries on hash instead of filename.JP Sugarbroad-8/+40
2016-04-13Auto merge of #32828 - vadimcn:symlinks, r=alexcrichtonbors-0/+40
Do not rely on file extensions after path canonicalization. Rustc does not recognize libraries which are symlinked to files having extension other than .rlib. The problem is that find_library_crate calls fs::canonicalize on found library paths, but then the resulting path is passed to get_metadata_section, which assumes it will end in ".rlib" if it's an rlib (from https://internals.rust-lang.org/t/is-library-path-canonicalization-worth-it/3206). cc #29433
2016-04-12rustbuild: Migrate tidy checks to RustAlex Crichton-0/+9
This commit rewrites all of the tidy checks we have, namely: * featureck * errorck * tidy * binaries into Rust under a new `tidy` tool inside of the `src/tools` directory. This at the same time deletes all the corresponding Python tidy checks so we can be sure to only have one source of truth for all the tidy checks. cc #31590
2016-04-08Auto merge of #32773 - mitaa:rdoc-ttfn-json, r=alexcrichtonbors-29/+0
rustdoc: Remove the json-{input, output} format (for reference #32698) fixes #25108 r? @alexcrichton
2016-04-08Added a testVadim Chugunov-0/+40
2016-04-09Test target feature computationAndrea Canciani-0/+1
2016-04-07Remove rustdocs json formatmitaa-29/+0
2016-04-06restructure rustc options relating to incr. comp.Niko Matsakis-1/+1
You can now pass `-Z incremental=dir` as well as saying `-Z query-dep-graph` if you want to enable queries for some other purpose. Accessor functions take the place of computed boolean flags.
2016-04-06rustc: retire hir::map's paths.Eduard Burtescu-1/+1
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-3/+2
2016-04-03Add run-make test for stable symbol-name generation.Michael Woerister-0/+60
2016-03-30Auto merge of #32439 - jseyfried:visible_suggestions, r=nrcbors-1/+1
diagnostics: make paths to external items more visible This PR changes the reported path for an external item so that it is visible from at least one local module (i.e. it does not use any inaccessible external modules) if possible. If the external item's crate was declared with an `extern crate`, the path is guarenteed to use the `extern crate`. Fixes #23224, fixes #23355, fixes #26635, fixes #27165. r? @nrc
2016-03-30Fix fallout in testsJeffrey Seyfried-1/+1
2016-03-29Remove unnecessary dependencies on rustc_llvm.Eduard Burtescu-1/+1
2016-03-27rustc: move cfg, infer, traits and ty from middle to top-level.Eduard Burtescu-1/+1
2016-03-25remove link-guard testNiko Matsakis-60/+0
2016-03-25document test, don't use grepNiko Matsakis-1/+26
2016-03-25test for immediate symbol name hashingNiko Matsakis-0/+24
2016-03-25check only that symbol names are deterministicNiko Matsakis-3/+9
Full binary reproducible builds are not possible on all platforms because linker injects a certain amount of randomness, apparently. Or, at minimum, they don't work reliably yet.
2016-03-25Add a "link-guard" to avoid accidentally linking to a wrong dylib at runtime.Michael Woerister-3/+61
We want to prevent compiling something against one version of a dynamic library and then, at runtime accidentally using a different version of the dynamic library. With the old symbol-naming scheme this could not happen because every symbol had the SVH in it and you'd get an error by the dynamic linker when using the wrong version of a dylib. With the new naming scheme this isn't the case any more, so this patch adds the "link-guard" to prevent this error case. This is implemented as follows: - In every crate that we compile, we emit a function called "__rustc_link_guard_<crate-name>_<crate-svh>" - The body of this function contains calls to the "__rustc_link_guard" functions of all dependencies. - An executable contains a call to it's own "__rustc_link_guard" function. As a consequence the "__rustc_link_guard" function call graph mirrors the crate graph and the dynamic linker will fail if a wrong dylib is loaded somewhere because its "__rustc_link_guard" function will contain a different SVH in its name.
2016-03-25Make the compiler emit an error if the crate graph contains two crates with ↵Michael Woerister-2/+2
the same crate-name and crate-salt but different SVHs.
2016-03-25Add a test to verify that we have reproducible compiler builds.Michael Woerister-0/+180
2016-03-24Include source text in JSON errorsNick Cameron-2/+2
2016-03-18tests: Update run-make/issue-25581 to reflect how fat pointers are passed.Eduard Burtescu-9/+4
2016-03-17Add #[rustc_no_mir] to make tests pass with -Z orbit.Eduard Burtescu-0/+2
2016-03-15Auto merge of #31887 - SimonSapin:quiet-test, r=alexcrichtonbors-0/+2
Shorter output for `rustc --test` binaries. Until now, a program created with `rustc --test` prints at least one line per test. This can be very verbose, especially with [data-driven tests](https://internals.rust-lang.org/t/test-and-external-test-harnesses/3145) when hundreds or thousands of tests is not rare. This changes the default output to one character per test (except metrics and benchmarks results which have additional data to show): ``` Running target/debug/wpt-75c594dc1e6e6187 running 314 tests .............................................................................. .............................................................................. .............................................................................. .............................................................................. .. test result: ok. 314 passed; 0 failed; 0 ignored; 0 measured ``` <s>The previous behavior is available by passing `--verbose` to the test program. Maybe `cargo test --verbose` could be changed to do that?</s> **Edit:** the default is now unchanged, `-q` or `--quiet` enables the new output.
2016-03-15Add a test for --quiet in test harness.Simon Sapin-0/+2
2016-03-14Auto merge of #32169 - mitaa:anon-tip, r=nrcbors-3/+6
Allow custom filenames for anonymous inputs This came out of #29253 but doesn't fix it. I thought it might be worth merging on its own nonetheless.
2016-03-14Allow custom filenames for anonymous inputsmitaa-3/+6