Page MenuHomePhorge

Add kazv-io-job-test
Changes PlannedPublic

Authored by nannanko on Mar 14 2025, 6:04 AM.
Tags
None
Referenced Files
F308057: D210.1745364400.diff
Mon, Apr 21, 4:26 PM
F308056: D210.1745364399.diff
Mon, Apr 21, 4:26 PM
F308055: D210.1745364398.diff
Mon, Apr 21, 4:26 PM
Subscribers
None

Details

Summary

Add tests for kazv-io-job.cpp

Type: skip

Test Plan

Verify unit tests pass.

Diff Detail

Repository
rK kazv
Branch
nannanko/kazv-io-test
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 340
Build 663: GitLab CI for kazv
Build 662: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 14 2025, 6:17 AM
Harbormaster failed remote builds in B337: Diff 557!

Fix code for libhttpserver 0.18.2

tusooa requested changes to this revision.Mar 15 2025, 5:56 PM
tusooa added inline comments.
CMakeLists.txt
81
src/tests/CMakeLists.txt
36

Use the PkgConfig::libhttpserver target, because it also includes the include dirs of that target. Also, use ecm_add_test to single out this one test that requires extra link libraries.

src/tests/kazv-io-job-test.cpp
62–66

This suffers from time-of-check, time-of-use problem. By the time the port is closed, it may no longer be free.

Use PkgConfig correctly, fixed time-of-check, time-of-use problem for port.

nannanko marked 3 inline comments as done.

Use QHttpServer instead of libhttpserver, and add upload test.

Add test about pause among downloading.

Add test for cancel download.

Upgrade the required Qt version to 6.8

Add test for KazvIODownloadJob::fileName and KazvIOUploadJob::fileName

verify KazvIOBaseJob::isResulted