about summary refs log tree commit diff
path: root/src/tools/compiletest
AgeCommit message (Collapse)AuthorLines
2019-12-09compiletest: add aux-crate directiveEric Huss-93/+95
2019-12-09Add options to --extern flag.Eric Huss-6/+6
2019-11-21Give name to full regex captureDylan MacKenzie-2/+3
2019-11-21Allow multiple cfgs per comment in "revisions:" testsDylan MacKenzie-42/+47
The `//[X]~` syntax filters errors for tests that are run across multiple cfgs with `// revisions:`. This commit extends that syntax to accept `//[X,Y]~`, which will match multiple cfgs to the same error annotation. This is functionally the same as writing two comments, `//[X]~` and `//[Y]~`, but can fit on a single line.
2019-11-20Rollup merge of #66060 - traxys:test_65401, r=michaelwoeristerMazdak Farrokhzad-4/+37
Making ICEs and test them in incremental This adds: - A way to make the compiler ICE - A way to check for ICE in `cfail` tests with `should-ice` - A regression test for issue #65401 I am not sure the attribute added `should-ice` is the best for this job
2019-11-15Move JSON emitter to rustc_errorsMark Rousskov-1/+1
2019-11-14Rollup merge of #66369 - tmiasko:compiletest-stamp, r=Mark-SimulacrumYuki Okushi-72/+90
compiletest: Obtain timestamps for common inputs only once Obtain timestamps for common inputs (e.g., libraries in run-lib path, or sources in `src/tool/compiletest/`) only once and reuse the result, instead of repeating the work for each test case.
2019-11-13compiletest: Avoid double negation in ignore conditionTomasz Miąsko-5/+6
2019-11-13compiletest: Obtain timestamps for common inputs only onceTomasz Miąsko-70/+87
Obtain timestamps for common inputs (e.g., libraries in run-lib path, or sources in `src/tool/compiletest/`) only once and reuse the result, instead of repeating the work for each test case. No functional changes intended.
2019-11-13Improve error message in make_testsPhilip Munksgaard-1/+1
We should use expect instead of unwrap. This commit is based on https://github.com/laumann/compiletest-rs/pull/58. Thanks to @colin-kiegel.
2019-11-12Compiletest bump to stage0 bootstrap libtestMark Rousskov-0/+2
2019-11-10Make error and warning annotations mandatory in UI testsTomasz Miąsko-2/+11
This change makes error and warning annotations mandatory in UI tests. The only exception are tests that use error patterns to match compiler output and don't have any annotations.
2019-11-08check for sould-ice either in compilefail or incremental cfailQuentin Boyer-0/+12
2019-11-07putting the failure_status code in header.rsQuentin Boyer-6/+4
2019-11-03tidyQuentin Boyer-1/+3
2019-11-03remove another status code check is should-iceQuentin Boyer-1/+6
2019-11-03add header to compiletest to check for iceQuentin Boyer-4/+20
2019-11-03Validate error patterns and error annotation in ui tests when presentTomasz Miąsko-8/+11
Previously, when compilation succeeded, neither error patterns nor error annotation would be validated. Additionally, when compilation failed, only error patterns would be validated if both error patterns and error annotation were present. Now both error patterns and error annotation are validated when present, regardless of compilation status. Furthermore, for test that should run, the error patterns are matched against executable output, which is what some of tests already expect to happen, and when #65506 is merged even more ui tests will.
2019-10-25Re-enable Emscripten's exception handling supportThomas Lively-4/+0
Passes LLVM codegen and Emscripten link-time flags for exception handling if and only if the panic strategy is `unwind`. Sets the default panic strategy for Emscripten targets to `unwind`. Re-enables tests that depend on unwinding support for Emscripten, including `should_panic` tests.
2019-10-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-1/+4
- Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-4/+1
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-04Fix ABI, run and fix more tests, re-enable CI for PRsThomas Lively-1/+4
2019-09-28Support run-fail ui testsTyler Mandry-4/+25
2019-09-26Upgrade env_logger to 0.7Mateusz Mikuła-1/+1
2019-09-23Add `#![deny(warnings)]` to internal toolsAlex Crichton-0/+1
2019-09-15use println!()Guanqun Lu-4/+4
2019-09-07run-pass tests shouldn't have unused contentsMark Rousskov-1/+10
2019-09-07Rollup merge of #64258 - smaeul:patch/arm-tests, r=Mark-SimulacrumMazdak Farrokhzad-3/+7
compiletest: Match suffixed environments This fixes a case where an `ignore-musl` test was not ignored on `armv7-unknown-linux-musleabihf` because the environment did not exactly match. Only enforce that the environment starts with the argument to `ignore-`.
2019-09-07Rollup merge of #64235 - mati865:env_logger, r=alexcrichtonMazdak Farrokhzad-1/+1
Upgrade env_logger to 0.6
2019-09-07compiletest: Match suffixed environmentsSamuel Holland-3/+7
This fixes a case where an `ignore-musl` test was not ignored on `armv7-unknown-linux-musleabihf` because the environment did not exactly match. Only enforce that the environment starts with the argument to `ignore-`.
2019-09-06Upgrade env_logger to 0.6Mateusz Mikuła-1/+1
2019-09-05Merge pull request #17 from rust-lang/masterBaoshan-23/+93
sync with rust-lang/rust master branch
2019-09-05simplify is_vxworks_pure_dynamicBaoshan Pang-8/+1
2019-09-04Merge pull request #15 from Wind-River/bpang-runtestBaoshan-2/+2
change RUST_TEST_DYLINK to RUST_VXWORKS_TEST_DYLINK
2019-09-04Auto merge of #63825 - nathanwhit:check-run-results, r=Mark-Simulacrumbors-23/+93
Allow checking of run-pass execution output in compiletest Closes #63751 Adds a `check-run-results` flag to compiletest headers, which if enabled checks the output of the execution of a run-pass test's binary against expected output.
2019-09-03change RUST_TEST_DYLINK to RUST_VXWORKS_TEST_DYLINKBaoshan Pang-2/+2
2019-09-03Merge pull request #12 from rust-lang/masterBaoshan-7/+3
sync with rust-lang/rust branch master
2019-09-03Strip remote-test-client output from run stdoutnathanwhit-2/+18
The remote-test-client outputs a message of the form "uploaded "<build_dir>/<executable_path>", waiting for result" onto stdout when executing a test, which is then captured in the process result. This needs to be removed when comparing the results of the run-pass test execution.
2019-09-03Rollup merge of #64071 - guanqun:style-fix, r=CentrilMazdak Farrokhzad-2/+2
use just one name when parameters and fields are the same
2019-09-02Ignore check-run-results tests for wasm32-barenathanwhit-0/+5
Ignores run-pass tests with the `check-run-results` flag enabled for the wasm32-bare ("wasm32-unknown-unknown") target, as it does not support printing to stdout/stderr.
2019-09-02following the same styleGuanqun Lu-2/+2
2019-09-01remove the unstable rustdoc parameter --linkerAndreas Jonson-5/+1
use the code generation parameter -Clinker (same parameter as rustc) to control what linker to use for building the rustdoc test executables. closes: #63816
2019-08-27run test for vxWorks in 'pure' static linking mode by default;Baoshan Pang-2/+27
if environment variables 'RUST_TEST_DYLINK' is set to 1, then run test in 'pure' dynamic linking mode
2019-08-25Allow checking of both compile & run output for run-pass testsNathan-18/+34
2019-08-22Compare run-pass outputs if `check-run-results` flag enabledNathan-2/+19
Addresses #63751
2019-08-22Extract loading and comparison of compiletest outputs to new fnNathan-15/+20
Moved into ```fn load_compare_outputs(&self, proc_res: &ProcRes, explicit_format: bool) -> usize```
2019-08-22Add header flag to check run-pass test outputnathanwhit-0/+11
2019-08-131. support crt-staticBaoshan Pang-3/+3
2. change armv7_wrs_vxworks to armv7_wrs_vxworks_eabihf. 3. use wr-** instead of vx-** 4. set PIE to false 5. code cleanup
2019-08-02compiletest: Unconfigure tests during normal buildVadim Petrochenkov-173/+183
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-1/+0
rustbuild Remove some random unnecessary lint `allow`s