Commit graph

24 commits

Author SHA1 Message Date
Alex Crichton ddc74a5db4 Fix updating submodules past failures
If a submodule-of-a-submodule failed to update then Cargo the next time
around wouldn't automatically retry updating the next submodule. This commit
fixes that by ensuring that if a parent git repository looks updated we still
recurse into its own submodules to ensure they're all updated.

cc #4071
2017-12-20 07:00:43 -08: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
Ray Tung 850fbdc0b5 Removed extraneous logic that generates [root] in cargo.lock 2017-10-03 23:18:08 +11:00
Tatsuyuki Ishi 000a079b52 Fix remaining test failures 2017-08-27 16:31:16 +09:00
debris 4b827bf554 fixed #4310, print useful information when git Cargo.toml is malformed 2017-07-30 16:12:18 +02:00
Aleksey Kladov 0ae2b97fcf Warn about obsolete conventions for binary names 2017-07-09 15:57:25 +03:00
Aleksey Kladov cce5b3d55e Fix tests 2017-07-09 13:31:42 +03:00
Alex Crichton 3b4e89f40d Ignore a test that accesses crates.io for now
Tests in general shouldn't hit the network, but this one requires a crate from
crates.io :(
2017-06-24 22:43:45 -07:00
Felix S. Klock II 749ec6ec20 Regression test for issue #4135. 2017-06-21 12:09:19 +02:00
Mike Lubinets 41e490480b Less strict tests regarding libtest's stdout 2017-05-16 05:22:52 +03:00
Fabien Antoine c560869176 Added test 2017-05-06 14:44:41 +02:00
Joonas Koivunen c9f86804ef git: use lower case in error message 2017-04-17 15:08:51 +03:00
Joonas Koivunen e9908c71e2 style fixes 2017-04-14 10:55:26 +03:00
Joonas Koivunen d31f24bdbb git: adjust error on submodule update failure
Now instead of reporting single generic "submodule update failed" a
dependency specific submodule update failed error message will be
reported and shown without --verbose.
2017-04-14 09:31:12 +03:00
Joonas Koivunen d804b03afb reproduce error msg in test case 2017-04-14 06:58:02 +03:00
tee-too e45a25012b Remove --cap-lints feature detection (fix issue #3828) 2017-03-17 14:52:31 +01:00
Andre Bogus c5611a32b4 some clippy-suggested improvements 2017-02-18 14:17:49 +01:00
Alex Crichton c0cc8ffe24 Handle rev being a tag
Previously if a rev was specified as a tag then we'd trip an assertion because
resetting to that tag would reset to the tag that the commit pointed to, which
would then cause the head id of the repo to be different than what we thought it
was.

Instead, we handle the case where a `rev` specification is a tag explicitly by
using the tag's target id as the revision that we're going to check out, not the
id of the tag itself.

Closes #3580
2017-01-23 09:25:14 -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
Nipunn Koorapati 530f2dd417 Mix feature flags into fingerprint/metadata shorthash
Since building dependencies results in different libraries
depending on the feature flags, I added the feature flags
into the short_hash. This solves an issue when multiple crates
share a target directory or multiple targets share a common
library with divergent feature flag choice.

- Only link binaries, build scripts, and top level deps
- Handle dylibs differently (no metadata filename / linking)
- Fingerprint based on link_dst rather than file_stem.

This (sadly) limits the effects of dep caching to things
which don't produce a hard-link. Currently, this is only dependent
library crates. Stil a big win.
2016-11-07 20:17:56 +11:00
Nipunn Koorapati a753d2f0b5 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 13:26:34 +11:00
Nipunn Koorapati 92175a2388 Add an [EXE] hamcrest substitution for file extension
This should make the testing a bit more precise as to whether
we expect targets of the form foo.exe vs foo-abc123.exe. I
was also considering adding a [/] substitution for the fwd
slash vs backslash [..], but thought I would leave that to another PR
if we thought that was a good idea.
2016-11-04 16:21:51 +11: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_compile_git_deps.rs (Browse further)