Repository navigation
fix: enable BUILD_TESTING in debian packaging - #596
Conversation
Reviewer's GuideConfigurationEnable BUILD_TESTING for both DTK5 and DTK6 Debian builds so packaging compiles and runs the unit tests.
TestsRun discovered tests serially and configure a writable test HOME for packaging environments.
Update filesystem, Qt-version, permission, settings, and event-loop tests to behave correctly across packaging and constrained environments.
Skip D-Bus tests when the session bus or fake service is unavailable, and initialize fixture pointers safely when setup skips.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
ad0f3c0 to
aebe7bb
Compare
1. Enable BUILD_TESTING in debian/rules for packaging 2. Add RUN_SERIAL TRUE to prevent parallel test fixture conflicts 3. Set temporary HOME dir for chroot (HOME=/nonexistent) 4. Fix moveToTrash test to check original path not trash path 5. Make beginEntryList compatible with Qt5 and Qt6 6. Skip D-Bus tests gracefully when session bus unavailable 7. Replace CopyExtension with version-agnostic static_cast 8. Prevent SEGFAULT in D-Bus/DSettings tests in bad environment 9. Fix QByteArray::number overload ambiguity for st_dev/st_ino 10. Skip symLinkTarget/copyWithPermission on container fs failure 11. Skip SaveToReadOnlyFile test when running as root Log: Enabled unit tests in debian packaging and fixed CI failures Influence: 1. Verify debian packaging runs unit tests successfully 2. Verify tests pass in CI Docker container environment 3. Verify D-Bus tests skip gracefully without session bus 4. Confirm permission tests skip correctly as root test: 启用并修复 CI 打包环境下的单元测试 1. 在 debian/rules 中启用 BUILD_TESTING 执行打包测试 2. 添加 RUN_SERIAL TRUE 防止并行测试 fixture 冲突 3. 为 chroot 环境设置临时 HOME 目录(HOME=/nonexistent) 4. 修复 moveToTrash 测试,检查原始路径而非回收站路径 5. 使 beginEntryList 调用兼容 Qt5 和 Qt6 6. 无 session bus 时优雅跳过 D-Bus 测试 7. 使用版本无关的 static_cast 替换 CopyExtension 8. 防止 D-Bus/DSettings 测试在环境不可用时段错误 9. 修复 st_dev/st_ino 的 QByteArray::number 重载歧义 10. 容器文件系统失败时跳过 symLinkTarget/copyWithPermission 11. root 运行时跳过 SaveToReadOnlyFile 测试 Log: 启用 debian 打包单元测试并修复 CI 容器测试失败 Influence: 1. 验证 debian 打包成功执行单元测试 2. 验证测试在 CI Docker 容器环境中通过 3. 验证无 session bus 时 D-Bus 测试被优雅跳过 4. 确认 root 运行时权限测试正确跳过
7d5115e to
3a2ee4d
Compare
|
Sorry @MyLeeJiEun, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 18 hours and 32 minutes by commenting |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, MyLeeJiEun 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 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Enable BUILD_TESTING in debian packaging for dtkcore
This PR enables unit test compilation and execution during dpkg packaging by switching
BUILD_TESTINGfromOFFtoONindebian/rulesfor both DTK5 and DTK6 build configurations.Changes
debian/rules: Changed-DBUILD_TESTING=OFF→-DBUILD_TESTING=ONin both DTK5 and DTK6override_dh_auto_configurecommandsRationale
dtkcore already has
override_dh_auto_testhooks indebian/rulesthat rundh_auto_testfor both build5 and build6. However,BUILD_TESTING=OFFprevented test binaries from being compiled. With this change,dh_auto_testwill compile and execute the unit tests during packaging.Related issue: DDE-574
Summary by Sourcery
Enable and stabilize unit test execution during Debian packaging across DTK5 and DTK6 configurations.
Bug Fixes:
Enhancements:
Tests: