mirror of
https://github.com/curl/curl.git
synced 2026-08-26 08:33:31 +03:00
pytest: add SOCKS tests and scoring
Configure curl with `--with-test-sockd=<path to sockd>` for a locally installed dante sockd server and new `test_40_*` will verify that down- and uploads work via SOCKS. Invoke scorecard.py with `--socks4` or `--socks5` to run performance tests with SOCKS. Note that SOCKS is not supported for HTTP/3. refs #17969
This commit is contained in:
parent
3d302250ec
commit
306e507094
11 changed files with 434 additions and 65 deletions
|
|
@ -52,6 +52,13 @@ curl> python3 tests/http/scorecard.py -d --download-sizes=1mb --download-count=1
|
|||
|
||||
Similar options are available for uploads and requests scenarios.
|
||||
|
||||
##sockd
|
||||
|
||||
If you have configured curl with `--with-test-sockd=<sockd-path>` for a dante
|
||||
sockd server installed on your system, you can provide the scorecard with
|
||||
arguments `--socks4` or `--socks5` to test performance with a SOCKS proxy
|
||||
involved. (Note: this does not work for HTTP/3)
|
||||
|
||||
## dtrace
|
||||
|
||||
With the `--dtrace` option, scorecard produces a dtrace sample of the user stacks in `tests/http/gen/curl/curl.user_stacks`. On many platforms, `dtrace` requires **special permissions**. It is therefore invoked via `sudo` and you should make sure that sudo works for the run without prompting for a password.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue