test: migrate unit tests from Qt5 to Qt6 environment#679
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pengfeixx The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Sorry @pengfeixx, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Note |
87e76e0 to
fb8fd2c
Compare
|
Note |
fb8fd2c to
9612b23
Compare
|
Note |
Update CMake configuration, test source code, and build scripts to compile and run under Qt6/DTK6. 将单元测试从Qt5迁移至Qt6环境,更新CMake配置、测试源码及构建脚本。 Log: 迁移单元测试至Qt6环境 Influence: 单元测试现在可以在Qt6/DTK6环境下编译运行,修复了Qt5→Qt6 API变更导致的编译错误和运行时崩溃。
9612b23 to
67ee089
Compare
deepin pr auto review这份 Git Diff 主要是将项目的单元测试从 Qt5 迁移到 Qt6,并对构建脚本(CMakeLists.txt 和 Shell 脚本)进行了相应的调整和优化。整体来看,迁移工作做得很扎实,针对 Qt6 的 API 变更(如 以下是对本次代码变更的详细审查意见,分为语法逻辑、代码质量、代码性能和代码安全四个方面: 一、 语法与逻辑
二、 代码质量
三、 代码性能
四、 代码安全
总结本次 Qt6 迁移的代码修改整体思路清晰,对 Qt6 API 变更的修复十分准确。最需要立即修复的是 Shell 脚本中变量未加引号的安全隐患,以及版权信息的笔误。其次,建议将 CMake 中的硬编码绝对路径改为通过 PkgConfig 查找,并清理测试代码中的开发者个人硬编码路径。 |
|
Note |
Update CMake configuration, test source code, and build scripts to compile and run under Qt6/DTK6.
将单元测试从Qt5迁移至Qt6环境,更新CMake配置、测试源码及构建脚本。
Log: 迁移单元测试至Qt6环境
Influence: 单元测试现在可以在Qt6/DTK6环境下编译运行,修复了Qt5→Qt6 API变更导致的编译错误和运行时崩溃。