Skip to content

feat(test)!: support integration tests#1230

Merged
ken-matsui merged 11 commits intomainfrom
integration-tests
Oct 30, 2025
Merged

feat(test)!: support integration tests#1230
ken-matsui merged 11 commits intomainfrom
integration-tests

Conversation

@ken-matsui
Copy link
Member

@ken-matsui ken-matsui commented Oct 30, 2025

Closes #993

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ken-matsui
Copy link
Member Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +438 to +446
for (const std::string& obj : buildObjTargets) {
if (obj.ends_with("/main.o") || obj == "main.o") {
continue;
}
deps.insert(obj);
}
if (hasLibraryTarget) {
deps.insert(libName);
}

Choose a reason for hiding this comment

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

P1 Badge Avoid linking library twice for integration tests

Integration test binaries are assembled by adding every build object (except main.o) to deps and then, when a library target exists, unconditionally adding libName as well. The archive already contains the same objects, so linking both the individual objects and the archive will produce duplicate symbol errors for projects that define src/lib.*. Integration tests should link either the object files or the library archive, not both.

Useful? React with 👍 / 👎.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will be addressed later.

@ken-matsui ken-matsui merged commit c4bed3b into main Oct 30, 2025
30 checks passed
@ken-matsui ken-matsui deleted the integration-tests branch October 30, 2025 18:58
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.

Support integration tests (tests directory)

1 participant