Skip to content

Check options as the Go client now does - #51

Open
BKPepe wants to merge 4 commits into
masterfrom
fix/option-checks
Open

BKPepe wants to merge 4 commits into
masterfrom
fix/option-checks

Conversation

@BKPepe

@BKPepe BKPepe commented Nov 29, 2026

Copy link
Copy Markdown
Member

Follows librespeed/speedtest-cli#162, librespeed/speedtest-cli#161 and librespeed/speedtest-cli#163, in that order. The parity test moves along to the Go commit each change follows, with cases for what changed.

  • --ipv4 --ipv6, --secure --insecure and --simple with --json, --csv or --json-stream are refused in Go's words.
  • --upload-size must be 1 to 2097151 KiB where a payload is made from it, so not with --list, --no-upload or --no-pre-allocate. 0 sent empty requests in a loop before.
  • A --ca-cert bundle without a certificate is no error under --skip-cert-verify. The native-tls build now also says that the bundle is unused, as the rustls build did.
  • An unreadable --ca-cert file gets the usual error prefix.

--ipv4 with --ipv6 and --secure with --insecure quietly took --ipv4 and
--secure, and --simple with --json, --csv or --json-stream printed its
lines into the machine-readable output. The Go client refuses them now,
and the parity test checks that both do it in the same words.
--upload-size 0 sent empty requests in a loop, and a size of 2 GiB or
more was allocated in one piece. Both are refused now in the Go client's
words, where a payload is made from the size, and the parity test moves
to the Go commit that added the check.
Both TLS builds refused a --ca-cert bundle without a certificate even
under --skip-cert-verify, where the Go client goes on because the bundle
is not used. They now say that the bundle is unused and go on, and a
bundle without a certificate is otherwise reported in Go's words.
Such a file ended the run without the prefix every other error gets. A
bundle without a certificate now says that PEM is expected, as in the Go
client, and the parity test moves to the Go commit with these changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant