Skip to content

Commit 7d53e48

Browse files
committed
Move build tests to build
1 parent dc83ead commit 7d53e48

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/testsuite/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ fn explicit_examples() {
19551955
)
19561956
.build();
19571957

1958-
p.cargo("test -v").run();
1958+
p.cargo("build --examples").run();
19591959
p.process(&p.bin("examples/hello"))
19601960
.with_stdout("Hello, World!\n")
19611961
.run();
@@ -2126,7 +2126,7 @@ fn implicit_examples() {
21262126
)
21272127
.build();
21282128

2129-
p.cargo("test").run();
2129+
p.cargo("build --examples").run();
21302130
p.process(&p.bin("examples/hello"))
21312131
.with_stdout("Hello, World!\n")
21322132
.run();
@@ -2739,13 +2739,13 @@ fn example_bin_same_name() {
27392739
.file("examples/foo.rs", "fn main() {}")
27402740
.build();
27412741

2742-
p.cargo("test --no-run -v").run();
2742+
p.cargo("build --examples").run();
27432743

27442744
assert!(!p.bin("foo").is_file());
27452745
// We expect a file of the form bin/foo-{metadata_hash}
27462746
assert!(p.bin("examples/foo").is_file());
27472747

2748-
p.cargo("test --no-run -v").run();
2748+
p.cargo("build --examples").run();
27492749

27502750
assert!(!p.bin("foo").is_file());
27512751
// We expect a file of the form bin/foo-{metadata_hash}
@@ -4212,7 +4212,7 @@ fn inferred_examples() {
42124212
.file("examples/baz/main.rs", "fn main() {}")
42134213
.build();
42144214

4215-
p.cargo("test").run();
4215+
p.cargo("build --examples").run();
42164216
assert!(p.bin("examples/bar").is_file());
42174217
assert!(p.bin("examples/baz").is_file());
42184218
}

0 commit comments

Comments
 (0)