FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[SYCLomatic] Remove invalid json test for standard compilation db fields by daiyaan-ahmed6 · Pull Request #583 · oneapi-src/SYCLomatic-test · GitHub

This repository was archived by the owner on Jul 21, 2026. It is now read-only.
/ SYCLomatic-test Public archive

[SYCLomatic] Remove invalid json test for standard compilation db fields - #583

Open
daiyaan-ahmed6 wants to merge 1 commit into
oneapi-src:SYCLomaticfrom
daiyaan-ahmed6:remove_invalid_json_test
Open

[SYCLomatic] Remove invalid json test for standard compilation db fields#583
daiyaan-ahmed6 wants to merge 1 commit into
oneapi-src:SYCLomaticfrom
daiyaan-ahmed6:remove_invalid_json_test

Conversation

daiyaan-ahmed6 commented Jan 4, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

Removed tests are check for 'Output' and 'Arguments' field in dpct to be invalid.

This is done for passing of feature PR: oneapi-src/SYCLomatic#1566

ngt-invalid-json7 and ngt-invalid-json8 test are removed.
ngt-invalid-json9 and ngt-invalid-json10 are renamed to ngt-invalid-json7 and ngt-invalid-json8 respectively.

Signed-off-by: Daiyaan Ahmed daiyaan.ahmed@intel.com

daiyaan-ahmed6 requested a review from a team as a code owner January 4, 2024 17:16
Signed-off-by: Ahmed, Daiyaan <daiyaan.ahmed@intel.com>
daiyaan-ahmed6 force-pushed the remove_invalid_json_test branch from 4d43101 to 7c376c5 Compare January 5, 2024 01:49

zhimingwang36 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

if "directory_placeholder" in line:
ret.append(" \"output\": \"aaaaa\",\n")
line = line.replace("directory_placeholder", os.getcwd().replace("\\", "\\\\"))
iter += 1

tomflinda Jan 8, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sine 'Output' and 'Arguments' in compile_commands.json could be consumed by SYCLomatic, the test case should keep 'output' in compile_commands.json and also added 'Arguments' to verify this feature, instead of remove them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

In the new PR for this, I have changed the name of these tests to 'standard_compilation_db_json' and I am keeping 'Arguments' and 'Output' in compilation db to verify that dpct consumes these arguments.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL