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: migrate build to snapbox #61

Closed
wants to merge 2 commits into from
Closed

test: migrate build to snapbox #61

wants to merge 2 commits into from

Conversation

weihanglo
Copy link
Owner

No description provided.

@weihanglo weihanglo force-pushed the snapbox-build branch 5 times, most recently from d858643 to 6678b72 Compare June 14, 2024 01:44
tests/testsuite/build.rs Outdated Show resolved Hide resolved
tests/testsuite/build.rs Outdated Show resolved Hide resolved
@@ -146,12 +162,22 @@ fn incremental_profile() {

p.cargo("build -v")
.env("CARGO_INCREMENTAL", "1")
.with_stderr_contains("[..]C incremental=[..]")
.with_stderr_data(str![[r#"
[COMPILING] foo v0.1.0 ([ROOT]/foo)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/weihanglo/cargo/actions/runs/9509523848/job/26212593734#step:11:4041


---- expected: tests\testsuite\build.rs:165:27
++++ actual:   stderr
        1 + [DIRTY] foo v0.1.0 ([ROOT]/foo): the profile configuration changed
   1    2 | [COMPILING] foo v0.1.0 ([ROOT]/foo)
   2      - [RUNNING] `rustc [..] -C incremental=[ROOT]/foo/target/debug/incremental[..]`
        3 + [RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values())" -C metadata=7585ee14222354b1 --out-dir [ROOT]/foo/target/debug/deps -C incremental=[ROOT]/foo/target/debug/incremental -L dependency=[ROOT]/foo/target/debug/deps`
   3    4 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

@weihanglo weihanglo force-pushed the snapbox-build branch 2 times, most recently from 2b3b81a to c636276 Compare June 14, 2024 03:07
@weihanglo weihanglo closed this Jun 14, 2024
@weihanglo weihanglo deleted the snapbox-build branch July 9, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant