Skip to content

scorecard, allow remote server test - #15415

Closed
icing wants to merge 4 commits into
curl:masterfrom
icing:scorecard-remote
Closed

scorecard, allow remote server test#15415
icing wants to merge 4 commits into
curl:masterfrom
icing:scorecard-remote

Conversation

@icing

@icing icing commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

New args for scorecard.py:

  • --remote ip:port to run tests against a remote server
  • --start-only: to only start the servers, listing their ports

Howto:
Have a local and remote machine with this PR and a built curl directory. Run pytest on both machines, so everything is set up and working. Then copy the test certificates to the remote machine with (adjust machine name and path):

curl> scp -r tests/http/gen/ca/* <remote_host>:~/projects/curl/tests/http/gen/ca/

On the remote machine run:

curl> (cd tests && python3 http/scorecard.py -d --start-only h3)
started servers:
Caddy: 2.6.2, http:41257 https:36135
press [RETURN] to finish

on the local machine run:

(cd tests && python3 http/scorecard.py -d --remote <remote_ip>:36135 h3)
...runs and results...

New args for scorecard.py:
* --remote ip:port to run tests against a remote server
* --start-only: to only start the servers, listing their ports

Start the server using "scorecard.py --start-only" on one machine
and then run the tests with "scorecard.py --remote ip:port" against
that machine.
@github-actions github-actions Bot added the tests label Oct 25, 2024
Comment thread tests/http/scorecard.py Outdated
@bagder bagder closed this in 0e0c8cd Oct 28, 2024
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
New args for scorecard.py:
* --remote ip:port to run tests against a remote server
* --start-only: to only start the servers, listing their ports

Start the server using "scorecard.py --start-only" on one machine and
then run the tests with "scorecard.py --remote ip:port" against that
machine.

Closes curl#15415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants