-
Notifications
You must be signed in to change notification settings - Fork 455
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
Fix add_test calls and change temporary file creation. #1522
Conversation
…that the command portion is a target and to translate it to the proper executable. * Remove starting backslash if present from temporary filename. A starting backslash mean that it is safe to create it in the current working directory. * Implement a public TempFile class. * Change relevant tests to use TempFile class. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the follow-up work @patlefort.
* Add comment on temporary file functions fix. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
I think the workflow running the tests is missing an option: tests running with |
Using |
For some reasons it looks like it was working correctly before the update to the |
Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
@patlefort Could you also add the ctest -C flag to the |
Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
* * Fix add_test in cmake files. This notation allows it to understand that the command portion is a target and to translate it to the proper executable. * Remove starting backslash if present from temporary filename. A starting backslash mean that it is safe to create it in the current working directory. * Implement a public TempFile class. * Change relevant tests to use TempFile class. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * * Revert back changes for TempFile class. * Add comment on temporary file functions fix. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add FIXME comments. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add -C flag to ctest commands. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add `-C Release` to ctest commands in `analysis_workflow.yml`. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com> Co-authored-by: Rémi Achard <remiachard@gmail.com>
* * Fix add_test in cmake files. This notation allows it to understand that the command portion is a target and to translate it to the proper executable. * Remove starting backslash if present from temporary filename. A starting backslash mean that it is safe to create it in the current working directory. * Implement a public TempFile class. * Change relevant tests to use TempFile class. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * * Revert back changes for TempFile class. * Add comment on temporary file functions fix. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add FIXME comments. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add -C flag to ctest commands. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add `-C Release` to ctest commands in `analysis_workflow.yml`. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com> Co-authored-by: Rémi Achard <remiachard@gmail.com> Signed-off-by: Patrick Hodoul <Patrick.Hodoul@autodesk.com>
* * Fix add_test in cmake files. This notation allows it to understand that the command portion is a target and to translate it to the proper executable. * Remove starting backslash if present from temporary filename. A starting backslash mean that it is safe to create it in the current working directory. * Implement a public TempFile class. * Change relevant tests to use TempFile class. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * * Revert back changes for TempFile class. * Add comment on temporary file functions fix. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add FIXME comments. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add -C flag to ctest commands. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add `-C Release` to ctest commands in `analysis_workflow.yml`. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com> Co-authored-by: Rémi Achard <remiachard@gmail.com> Signed-off-by: Patrick Hodoul <Patrick.Hodoul@autodesk.com> Co-authored-by: patlefort <northon_patrick3@yahoo.ca> Co-authored-by: Rémi Achard <remiachard@gmail.com>
Followup from my previous PR (#1487)
I've implemented a public TempFile class. I've put it in the OCIO namespace, is it fine? Should I put it in the Platform namespace? Also, GPUHelpers.h/cpp are left empty, should they be removed?
Signed-off-by: Patrick Northon northon_patrick3@yahoo.ca