about summary refs log tree commit diff
path: root/src/test/run-make-fulldeps/tools.mk
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-187/+0
2022-11-17run tests on the remote device even when the default address is usedPietro Albini-3/+3
When running tests inside the Android emulator, bootstrap doesn't set the TEST_DEVICE_ADDR environment variable, as the default address (127.0.0.1:12345) is used. Instead, REMOTE_TEST_CLIENT is set all the times when remote testing is needed, and in no other cases. To ensure Android tests are executed in the emulator, change the check.
2022-11-17add support for running binaries with remote-test-client on run-makePietro Albini-6/+17
2022-07-22Enable raw-dylib for binariesDaniel Paoliello-1/+1
2022-06-09Stabilize the `bundle` native library modifierVadim Petrochenkov-1/+1
2021-10-28Add -Zunstable-options instead of featureMateusz Mikuła-2/+2
2021-10-23Repace use of `static_nobundle` with `native_link_modifiers`Mateusz Mikuła-1/+1
This fixes warning when building Rust and running tests: ``` warning: library kind `static-nobundle` has been superseded by specifying `-bundle` on library kind `static`. Try `static:-bundle` warning: `rustc_llvm` (lib) generated 2 warnings (1 duplicate) ```
2021-10-15Add missing bcrypt.lib to make-fulldeps Makefile.Mara Bos-2/+2
2021-02-13Disabled SHELL=dash on Windows due to invalid path backslash handlingRich Kadel-0/+2
Calling an executable via full path with Windows backslashes fails in dash.
2021-02-11Set SHELL = /bin/dash only if it existsRich Kadel-4/+11
2021-02-11Ensures `make` tests run under /bin/dash, like CI, and fixes a MakefileRich Kadel-0/+6
Updates `tools.mk` to explicitly require `SHELL := /bin/dash`, since CI uses `dash` but other environments (including developer local machines) may default to `bash`. Replaces bash-specific shell command in one Makefile with a dash-compatible alternative, and re-enables the affected Makefile test. Removes apparently redundant definition of `UNAME`.
2020-09-07rustbuild: Build tests with LLD if `use-lld = true` was passedVadim Petrochenkov-2/+2
2020-07-29Auto merge of #72049 - mati865:mingw-lld, r=petrochenkovbors-0/+1
MinGW: enable dllexport/dllimport Fixes (only when using LLD) https://github.com/rust-lang/rust/issues/50176 Fixes https://github.com/rust-lang/rust/issues/72319 This makes `windows-gnu` on pair with `windows-msvc` when it comes to symbol exporting. For MinGW it means both good things like correctly working dllimport/dllexport, ability to link with LLD and bad things like https://github.com/rust-lang/rust/issues/27438. Not sure but maybe this should land behind unstable compiler option (`-Z`) or environment variable?
2020-07-29Add test for #50176Mateusz Mikuła-0/+1
2020-07-19Auto merge of #74091 - richkadel:llvm-coverage-map-gen-4, r=tmandrybors-0/+3
Generating the coverage map @tmandry @wesleywiser rustc now generates the coverage map and can support (limited) coverage report generation, at the function level. Example commands to generate a coverage report: ```shell $ BUILD=$HOME/rust/build/x86_64-unknown-linux-gnu $ $BUILD/stage1/bin/rustc -Zinstrument-coverage \ $HOME/rust/src/test/run-make-fulldeps/instrument-coverage/main.rs $ LLVM_PROFILE_FILE="main.profraw" ./main called $ $BUILD/llvm/bin/llvm-profdata merge -sparse main.profraw -o main.profdata $ $BUILD/llvm/bin/llvm-cov show --instr-profile=main.profdata main ``` ![rust coverage report only 20200706](https://user-images.githubusercontent.com/3827298/86697299-1cbe8f80-bfc3-11ea-8955-451b48626991.png) r? @wesleywiser Rust compiler MCP rust-lang/compiler-team#278 Relevant issue: #34701 - Implement support for LLVMs code coverage instrumentation
2020-07-17Generating the coverage mapRich Kadel-0/+3
rustc now generates the coverage map and can support (limited) coverage report generation, at the function level. Example: $ BUILD=$HOME/rust/build/x86_64-unknown-linux-gnu $ $BUILD/stage1/bin/rustc -Zinstrument-coverage \ $HOME/rust/src/test/run-make-fulldeps/instrument-coverage/main.rs $ LLVM_PROFILE_FILE="main.profraw" ./main called $ $BUILD/llvm/bin/llvm-profdata merge -sparse main.profraw -o main.profdata $ $BUILD/llvm/bin/llvm-cov show --instr-profile=main.profdata main 1| 1|pub fn will_be_called() { 2| 1| println!("called"); 3| 1|} 4| | 5| 0|pub fn will_not_be_called() { 6| 0| println!("should not have been called"); 7| 0|} 8| | 9| 1|fn main() { 10| 1| let less = 1; 11| 1| let more = 100; 12| 1| 13| 1| if less < more { 14| 1| will_be_called(); 15| 1| } else { 16| 1| will_not_be_called(); 17| 1| } 18| 1|}
2020-07-17Create implib for dlls when testing MinGW targetsMateusz Mikuła-1/+1
2020-04-09Fix staticlib name for *-pc-windows-gnu targetsMateusz Mikuła-0/+5
2019-11-18Fix Makefile themes checkGuillaume Gomez-1/+1
2019-11-03Fix macOS testsAmanieu d'Antras-0/+2
2019-11-03Hack to make C++ exceptions test work on i686-pc-windows-gnuAmanieu d'Antras-0/+17
2019-11-03Enable C++ exceptions on MSVC when building C++ testsAmanieu d'Antras-1/+1
2019-11-03Add -lstdc++ for run-make-fulldeps tests on MinGWAmanieu d'Antras-0/+1
2019-09-01remove the unstable rustdoc parameter --linkerAndreas Jonson-1/+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-05-13Remove bitrig support from rustMarcel Hellwig-5/+0
2019-04-26compiletest: Make the LLVM FileCheck tool available to run-make tests.Michael Woerister-0/+1
2018-12-10Remove dependency on shell32.dll #56510Michael Howell-1/+1
2018-05-31Add a test for issue 36710.Johannes Nixdorf-0/+2
This still expectedly fails for musl targets with +crt-static.
2018-05-17Revert "Add a test for issue 36710."Alex Crichton-2/+0
This reverts commit bd94bf5738c7a0fd148157831eabd1efede3b309.
2018-05-11Add a test for issue 36710.Johannes Nixdorf-0/+2
2018-03-22rustc: Add a `#[wasm_custom_section]` attributeAlex Crichton-0/+134
This commit is an implementation of adding custom sections to wasm artifacts in rustc. The intention here is to expose the ability of the wasm binary format to contain custom sections with arbitrary user-defined data. Currently neither our version of LLVM nor LLD supports this so the implementation is currently custom to rustc itself. The implementation here is to attach a `#[wasm_custom_section = "foo"]` attribute to any `const` which has a type like `[u8; N]`. Other types of constants aren't supported yet but may be added one day! This should hopefully be enough to get off the ground with *some* custom section support. The current semantics are that any constant tagged with `#[wasm_custom_section]` section will be *appended* to the corresponding section in the final output wasm artifact (and this affects dependencies linked in as well, not just the final crate). This means that whatever is interpreting the contents must be able to interpret binary-concatenated sections (or each constant needs to be in its own custom section). To test this change the existing `run-make` test suite was moved to a `run-make-fulldeps` folder and a new `run-make` test suite was added which applies to all targets by default. This test suite currently only has one test which only runs for the wasm target (using a node.js script to use `WebAssembly` in JS to parse the wasm output).