Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scorecard, allow remote server test #15415

Closed
wants to merge 4 commits into from
Closed

Conversation

icing
Copy link
Contributor

@icing icing commented Oct 25, 2024

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
tests/http/scorecard.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants