Commit 0367200
committed
CI: build in-tree smoke tests and run them via CTest on all platforms
New tools/tests/ target (networkml_smoke) exercises the whole public API:
44 offline checks for Auth/Url/File/Chat-state/object construction, plus
26 live HTTP checks against postman-echo.com covering every Requests
verb, download with progress, and multipart upload. Gated behind
NETWORKML_BUILD_TESTS=ON so downstream consumers never build it.
CI configures with -DNETWORKML_BUILD_TESTS=ON on Linux, macOS, and
Windows, then runs ctest with NETWORKML_LIVE=1 so the HTTP verbs are
actually exercised (not just linked). Live Chat coverage stays opt-in
via NETWORKML_CHAT_PROVIDER/MODEL so no credentials are required.
Motivates: the CMake-config find_dependency bug found earlier this
session shipped past CI because the workflow only compiled + installed
the library, never running a real consumer. This closes that gap.1 parent 141cbc7 commit 0367200
4 files changed
Lines changed: 383 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments