|
1 | 1 | //! Tests for `[features]` table.
|
2 | 2 |
|
3 | 3 | use cargo_test_support::paths::CargoPathExt;
|
| 4 | +use cargo_test_support::prelude::*; |
4 | 5 | use cargo_test_support::registry::{Dependency, Package};
|
5 | 6 | use cargo_test_support::str;
|
6 | 7 | use cargo_test_support::{basic_manifest, project};
|
@@ -740,14 +741,17 @@ fn groups_on_groups_on_groups() {
|
740 | 741 | .build();
|
741 | 742 |
|
742 | 743 | p.cargo("check")
|
743 |
| - .with_stderr_data(str![[r#" |
| 744 | + .with_stderr_data( |
| 745 | + str![[r#" |
744 | 746 | [LOCKING] 3 packages to latest compatible versions
|
745 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
746 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
| 747 | +[CHECKING] bar v0.0.1 ([ROOT]/foo/bar) |
| 748 | +[CHECKING] baz v0.0.1 ([ROOT]/foo/baz) |
747 | 749 | [CHECKING] foo v0.0.1 ([ROOT]/foo)
|
748 | 750 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
749 | 751 |
|
750 |
| -"#]]) |
| 752 | +"#]] |
| 753 | + .unordered(), |
| 754 | + ) |
751 | 755 | .run();
|
752 | 756 | }
|
753 | 757 |
|
@@ -790,14 +794,17 @@ fn many_cli_features() {
|
790 | 794 |
|
791 | 795 | p.cargo("check --features")
|
792 | 796 | .arg("bar baz")
|
793 |
| - .with_stderr_data(str![[r#" |
| 797 | + .with_stderr_data( |
| 798 | + str![[r#" |
794 | 799 | [LOCKING] 3 packages to latest compatible versions
|
795 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
796 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
| 800 | +[CHECKING] bar v0.0.1 ([ROOT]/foo/bar) |
| 801 | +[CHECKING] baz v0.0.1 ([ROOT]/foo/baz) |
797 | 802 | [CHECKING] foo v0.0.1 ([ROOT]/foo)
|
798 | 803 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
799 | 804 |
|
800 |
| -"#]]) |
| 805 | +"#]] |
| 806 | + .unordered(), |
| 807 | + ) |
801 | 808 | .run();
|
802 | 809 | }
|
803 | 810 |
|
@@ -1512,14 +1519,17 @@ fn many_cli_features_comma_delimited() {
|
1512 | 1519 | .build();
|
1513 | 1520 |
|
1514 | 1521 | p.cargo("check --features bar,baz")
|
1515 |
| - .with_stderr_data(str![[r#" |
| 1522 | + .with_stderr_data( |
| 1523 | + str![[r#" |
1516 | 1524 | [LOCKING] 3 packages to latest compatible versions
|
1517 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
1518 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
| 1525 | +[CHECKING] bar v0.0.1 ([ROOT]/foo/bar) |
| 1526 | +[CHECKING] baz v0.0.1 ([ROOT]/foo/baz) |
1519 | 1527 | [CHECKING] foo v0.0.1 ([ROOT]/foo)
|
1520 | 1528 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
1521 | 1529 |
|
1522 |
| -"#]]) |
| 1530 | +"#]] |
| 1531 | + .unordered(), |
| 1532 | + ) |
1523 | 1533 | .run();
|
1524 | 1534 | }
|
1525 | 1535 |
|
@@ -1578,16 +1588,19 @@ fn many_cli_features_comma_and_space_delimited() {
|
1578 | 1588 |
|
1579 | 1589 | p.cargo("check --features")
|
1580 | 1590 | .arg("bar,baz bam bap")
|
1581 |
| - .with_stderr_data(str![[r#" |
| 1591 | + .with_stderr_data( |
| 1592 | + str![[r#" |
1582 | 1593 | [LOCKING] 5 packages to latest compatible versions
|
1583 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
1584 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
1585 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
1586 |
| -[CHECKING] ba[..] v0.0.1 ([ROOT]/foo/ba[..]) |
| 1594 | +[CHECKING] bam v0.0.1 ([ROOT]/foo/bam) |
| 1595 | +[CHECKING] bap v0.0.1 ([ROOT]/foo/bap) |
| 1596 | +[CHECKING] bar v0.0.1 ([ROOT]/foo/bar) |
| 1597 | +[CHECKING] baz v0.0.1 ([ROOT]/foo/baz) |
1587 | 1598 | [CHECKING] foo v0.0.1 ([ROOT]/foo)
|
1588 | 1599 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
1589 | 1600 |
|
1590 |
| -"#]]) |
| 1601 | +"#]] |
| 1602 | + .unordered(), |
| 1603 | + ) |
1591 | 1604 | .run();
|
1592 | 1605 | }
|
1593 | 1606 |
|
|
0 commit comments