Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: replace glob with explicit unordered calls #14166

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 31 additions & 18 deletions tests/testsuite/features.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Tests for `[features]` table.

use cargo_test_support::paths::CargoPathExt;
use cargo_test_support::prelude::*;
use cargo_test_support::registry::{Dependency, Package};
use cargo_test_support::str;
use cargo_test_support::{basic_manifest, project};
Expand Down Expand Up @@ -740,14 +741,17 @@ fn groups_on_groups_on_groups() {
.build();

p.cargo("check")
.with_stderr_data(str![[r#"
.with_stderr_data(
str![[r#"
[LOCKING] 3 packages to latest compatible versions
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
[CHECKING] baz v0.0.1 ([ROOT]/foo/baz)
[CHECKING] foo v0.0.1 ([ROOT]/foo)
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

"#]])
"#]]
.unordered(),
)
.run();
}

Expand Down Expand Up @@ -790,14 +794,17 @@ fn many_cli_features() {

p.cargo("check --features")
.arg("bar baz")
.with_stderr_data(str![[r#"
.with_stderr_data(
str![[r#"
[LOCKING] 3 packages to latest compatible versions
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
[CHECKING] baz v0.0.1 ([ROOT]/foo/baz)
[CHECKING] foo v0.0.1 ([ROOT]/foo)
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

"#]])
"#]]
.unordered(),
)
.run();
}

Expand Down Expand Up @@ -1512,14 +1519,17 @@ fn many_cli_features_comma_delimited() {
.build();

p.cargo("check --features bar,baz")
.with_stderr_data(str![[r#"
.with_stderr_data(
str![[r#"
[LOCKING] 3 packages to latest compatible versions
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
[CHECKING] baz v0.0.1 ([ROOT]/foo/baz)
[CHECKING] foo v0.0.1 ([ROOT]/foo)
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

"#]])
"#]]
.unordered(),
)
.run();
}

Expand Down Expand Up @@ -1578,16 +1588,19 @@ fn many_cli_features_comma_and_space_delimited() {

p.cargo("check --features")
.arg("bar,baz bam bap")
.with_stderr_data(str![[r#"
.with_stderr_data(
str![[r#"
[LOCKING] 5 packages to latest compatible versions
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..])
[CHECKING] bam v0.0.1 ([ROOT]/foo/bam)
[CHECKING] bap v0.0.1 ([ROOT]/foo/bap)
[CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
[CHECKING] baz v0.0.1 ([ROOT]/foo/baz)
[CHECKING] foo v0.0.1 ([ROOT]/foo)
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

"#]])
"#]]
.unordered(),
)
.run();
}

Expand Down