summary refs log tree commit diff
path: root/src/test/run-make
AgeCommit message (Collapse)AuthorLines
2016-05-04Make data-layout mandatory in target specs.Eduard Burtescu-0/+1
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-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
2016-03-12std: Clean out deprecated APIsAlex Crichton-2/+4
Removes all unstable and deprecated APIs prior to the 1.8 release. All APIs that are deprecated in the 1.8 release are sticking around for the rest of this cycle. Some notable changes are: * The `dynamic_lib` module was moved into `rustc_back` as the compiler still relies on a few bits and pieces. * The `DebugTuple` formatter now special-cases an empty struct name with only one field to append a trailing comma.
2016-03-11test: Move some test outputs into $(TMPDIR)Alex Crichton-8/+12
Don't want to pollute the source tree!
2016-03-09Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrcbors-2/+2
[breaking-batch] Move more uses of `panictry!` out of libsyntax
2016-02-19Add tests for read_volatile and write_volatileAmanieu d'Antras-1/+7
2016-02-16Move more uses of `panictry!` out of libsyntaxJonas Schievink-2/+2
[breaking-change] for syntax extensions
2016-02-15Add LLVM FunctionPass regression test using run-make.Corey Farwell-17/+78
Part of https://github.com/rust-lang/rust/issues/31185. Similar to https://github.com/rust-lang/rust/pull/31391.
2016-02-14trans: Don't link whole rlibs to executablesAlex Crichton-0/+104
Back in 9bc8e6d14 the linking of rlibs changed to using the `link_whole_rlib` function. This change, however was only intended to affect dylibs, not executables. For executables we don't actually want to link entire rlibs because we want the linker to strip out as much as possible. This commit adds a conditional to this logic to only link entire rlibs if we're creating a dylib, and otherwise an executable just links an rlib as usual. A test is included which will fail to link if this behavior is reverted.
2016-02-14Auto merge of #31391 - frewsxcv:test, r=alexcrichtonbors-0/+109
Part of #31185
2016-02-13Add LLVM ModulePass regression test using run-make.Corey Farwell-0/+109
Part of #31185
2016-02-13use a compatible syntax for grep GNU/BSDSébastien Marie-2/+2
The BSD grep for "basic regex" don't support \| as alternate operator. Use multiple -e arguments for expressing alternative.
2016-02-13Auto merge of #31358 - japaric:print-targets, r=alexcrichtonbors-0/+15
that prints a list of all the triples supported by the `--target` flag r? @alexcrichton
2016-02-12Auto merge of #30726 - GuillaumeGomez:compile-fail, r=brsonbors-1/+1
r? @brson cc @alexcrichton I still need to add error code explanation test with this, but I can't figure out a way to generate the `.md` files in order to test example source codes. Will fix #27328.
2016-02-12rustc: add a `--print target-list` commandJorge Aparicio-0/+15
2016-02-11Add -C link-dead-code option r=alexcrichtonJohan Lorenzo-0/+7
Turning gc-sections off improves code coverage based for tools which use DWARF debugging information (like kcov). Otherwise dead code is stripped and kcov returns a coverage percentage that doesn't reflect reality.
2016-02-08rustc: Implement a new `--print cfg` flagAlex Crichton-0/+15
This commit is an implementation of the new compiler flags required by [RFC 1361][rfc]. This specifically adds a new `cfg` option to the `--print` flag to the compiler. This new directive will print the defined `#[cfg]` directives by the compiler for the target in question. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
2016-02-07Add compile-fail test in rustdocGuillaume Gomez-1/+1
2016-02-05Instrument the AST map so that it registers reads when data isNiko Matsakis-1/+3
acccessed.
2016-02-03Auto merge of #31078 - nbaksalyar:illumos, r=alexcrichtonbors-3/+7
This pull request adds support for [Illumos](http://illumos.org/)-based operating systems: SmartOS, OpenIndiana, and others. For now it's x86-64 only, as I'm not sure if 32-bit installations are widespread. This PR is based on #28589 by @potatosalad, and also closes #21000, #25845, and #25846. Required changes in libc are already merged: https://github.com/rust-lang-nursery/libc/pull/138 Here's a snapshot required to build a stage0 compiler: https://s3-eu-west-1.amazonaws.com/nbaksalyar/rustc-sunos-snapshot.tar.gz It passes all checks from `make check`. There are some changes I'm not quite sure about, e.g. macro usage in `src/libstd/num/f64.rs` and `DirEntry` structure in `src/libstd/sys/unix/fs.rs`, so any comments on how to rewrite it better would be greatly appreciated. Also, LLVM configure script might need to be patched to build it successfully, or a pre-built libLLVM should be used. Some details can be found here: https://llvm.org/bugs/show_bug.cgi?id=25409 Thanks! r? @brson
2016-02-02Reviewer requested changes and test fixesNick Cameron-2/+2
2016-01-31Add Illumos supportNikita Baksalyar-3/+7
2016-01-29Get tests working on MSVC 32-bitAlex Crichton-3/+15
2016-01-29trans: Upgrade LLVMAlex Crichton-1/+0
This brings some routine upgrades to the bundled LLVM that we're using, the most notable of which is a bug fix to the way we handle range asserts when loading the discriminant of an enum. This fix ended up being very similar to f9d4149c where we basically can't have a range assert when loading a discriminant due to filling drop, and appropriate flags were added to communicate this to `trans::adt`.
2016-01-28Auto merge of #30411 - mitaa:multispan, r=nrcbors-2/+2
This allows to render multiple spans on one line, or to splice multiple replacements into a code suggestion. fixes #28124
2016-01-28Implement MultiSpan error reportingmitaa-2/+2
This allows to render multiple spans on one line, or to splice multiple replacements into a code suggestion.
2016-01-26Initial work towards abort-free compilationNick Cameron-4/+4
The goal is that the compiler will pass `Result`s around rather than using abort_if_errors. To preserve behaviour we currently abort at the top level. I've removed all other aborts from the driver, but haven't touched any of the nested aborts.