Skip to content

Conversation

@maksimsab
Copy link
Contributor

@maksimsab maksimsab commented Oct 27, 2025

Initially, the sycl-linker-wrapper-win.cpp test was introduced to check .exe extensions. This change adapts the sycl-linker-wrapper.cpp test to any extensions.

Also, sycl-post-link-options-win.cpp test is removed because corresponding checks in the test are repeated in sycl-post-link-options.cpp test.

Fixes: #17754

sycl-linker-wrapper.cpp test

Initially, the sycl-linker-wrapper-win.cpp test was introduced to check .exe
extensions. This change adapts the sycl-linker-wrapper.cpp test to any
extensions.
@maksimsab maksimsab requested a review from a team October 27, 2025 15:37
@maksimsab maksimsab requested a review from a team as a code owner October 27, 2025 15:37
@maksimsab
Copy link
Contributor Author

Note: Not ready for review. I posted this PR to run the CI for Windows.

@maksimsab
Copy link
Contributor Author

Hi @intel/dpcpp-tools-reviewers @intel/dpcpp-clang-driver-reviewers
This PR is ready for review. I have also just noticed that we have 2 tests that are split to linux and windows versions - clang/test/Driver/sycl-post-link-options.cpp and clang/test/Driver/sycl-post-link-options-win.cpp.

I think I would like to merge them as well.

Also my note about merging tests is that it makes more difficult to check path separators if you want to check them.

@maksimsab maksimsab changed the title [SYCL][NewOffloadModel] Merge sycl-linker-wrapper-win.cpp test with sycl-linker-wrapper.cpp test [SYCL][NewOffloadModel] Merge linux/win tests for New Offloading Model. Oct 30, 2025
@maksimsab
Copy link
Contributor Author

@bader Please, share your feedback if you have any.

Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

LGTM. 👍
Thanks!

@srividya-sundaram
Copy link
Contributor

I think I would like to merge them as well.

I would also suggest to rename the test file to clang-linker-wrapper.cpp , as the test is testing clang-linker-wrapper tool.

Copy link
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

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

Renaming test sycl-linker-wrapper to clang-linker-wrapper also makes sense to me, but it was not the purpose of this PR, so I approve. Thanks.

@srividya-sundaram
Copy link
Contributor

Thank you @bader

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.

Remove code duplication in clang-linker-wrapper test.

4 participants