Commit graph

15 commits

Author SHA1 Message Date
André Rocha c2ff988c9f Reorganize integration tests as one crate with many modules. Issue #4867. 2018-02-21 13:33:51 -05:00
NODA, Kai d43ee1dd22
cargotest/support: remove internal mutability in favor of switching types
Remove is_build: Cell<bool> from ProjectBuilder and introduce a new type Project.

is_build==false <-> ProjectBuilder
is_build==true <-> Project

Also add #[must_use] to ProjectBuilder to confirm its instances are surely consumed by its build() method to produce Project.

The same goes for RepoBuilder.

ProjectBuilder::cargo_process() was removed as its design heavily depended on the internal mutability.

Signed-off-by: NODA, Kai <nodakai@gmail.com>
2017-10-10 16:47:12 +08:00
Aleksey Kladov 5e8eef977b Assert that we don't build test project twice.
That may work on linux and fail on windows, so it's better to proactively verify it.
2017-02-15 23:29:57 +03:00
Steven Fackler 6d864a81cb Allow debuginfo level to be specified
`true` is mapped to `2`, which matches current behavior.
2017-01-12 20:11:29 -08:00
Justin Geibel 34628b6574 Rename debug target to dev in build output
This renames the debug target to dev in the build output for non-release
builds.  This includes the output of commands such as `cargo build`,
`cargo test`, and `cargo doc`.

Closes #3519
2017-01-11 21:10:29 -05:00
Nick Cameron 844d7ae7c9 Fixup tests 2017-01-05 13:40:41 +13:00
Inokentiy Babushkin b5781d40c8 Changed another batch of tests to account for new rustc argument order. 2016-11-30 20:04:14 +01:00
bors 0682ced378 Auto merge of #3257 - nipunn1313:slash, r=alexcrichton
Add a [/] macro expansion for tests

Converts to backslash on windows. Currently, we're using [..],
so this will tighten up the tests.
2016-11-06 20:38:31 -08:00
Nipunn Koorapati d01cc3e176 Replace {sep} with [/] as well 2016-11-06 15:53:21 +11:00
Aleksey Kladov 151f12fc44 Use a single profile set per workspace 2016-11-03 14:13:22 +03:00
whitequark bc858b0499 Allow using opt-level="s"/"z" in profile overrides.
Fixes #2655.
2016-08-17 22:14:09 +00:00
Alex Crichton 083ff01eef Always pass -C metadata to the compiler
If it's not otherwise available we just key it off the pkgid which should be
unique enough across compilations. This should help incremental compilation
efforts be "more incremental" across projects.

Closes #2943
2016-08-01 23:22:29 -07:00
Alex Crichton 0863469c8b Always build libraries into the same location
Previously Cargo would compile a library into a different location depending on
whether it was the "root crate" or not. In the ongoing saga of reducing Cargo's
reliance on the idea of a "root crate" this PR is the next step. With workspaces
the root crate of a compliation changes all the time, so the output needs to be
the same whether a crate is at the root or not.

Fixing this inconsistence in turn fixes bugs like #2855 and #2897 which arise
due to this discrepancy. Additionally, Cargo will no longer recompile a library
when it's used as a "root crate" or not.

This is fixed by taking a few steps:

* Everything is now compiled into the `deps` directory, regardless of whether
  it's a root output or not.
* If a "root crate" is being compiled, then the relevant outputs are hard-linked
  up one level to where they are today. This means that your binaries, dylibs,
  staticlibs, etc, will all show up where they used to.
* The `-C metadata` flag is always omitted for path dependencies now. These
  dependencies are always path dependencies and already all have unique crate
  names. Additionally, they're the only crates in the DAG without metadata, so
  there's no need to provide additional metadata. This in turn means that none
  of the file names of the generated crates are mangled.

Closes #2855
2016-07-26 17:52:45 -07:00
Jonathan Turner cd955f129d Add 'Finished' line after compile finishes with compile timing and build type 2016-07-25 16:30:03 -07:00
Alex Crichton 763ba535eb Shared the test suite into multiple binaries
Compiling everything in one binary was getting annoying as it just took forever
to build, instead shard it all up so we can build just particular test suites at
a time.
2016-05-25 21:25:13 -07:00
Renamed from tests/test_cargo_profiles.rs (Browse further)