Skip to content

Commit

Permalink
Add client, server and test argument option
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Mar 1, 2024
1 parent 69fcd42 commit aa3a746
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ jobs:
# Replace with the name of the freshly-build local docker image.
image: 'ghcr.io/mozilla/neqo-qns:latest'
url: https://github.com/mozilla/neqo
test: handshake
client: quic-go,ngtcp2,neqo,msquic
server: quic-go,ngtcp2,neqo,msquic
24 changes: 23 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ inputs:
description: 'client/server/both'
required: false
default: 'both'
client:
description: 'client implementations (comma-separated)'
required: false
default: ''
server:
description: 'server implementations (comma-separated)'
required: false
default: ''
test:
description: 'test cases (comma-separatated)'
required: false
default: ''

runs:
using: "composite"
Expand Down Expand Up @@ -57,7 +69,17 @@ runs:
cd quic-interop-runner
jq --arg key "${{ inputs.name }}" --argjson newEntry '{"image": "${{ inputs.image }}", "url": "${{ inputs.url }}", "role": "${{ inputs.role }}"}' '.[$key] = $newEntry' implementations.json > temp.$$ && mv temp.$$ implementations.json
cat implementations.json
python run.py --must-include ${{ inputs.name }} --test handshake --log-dir logs 2>&1 | tee summary
ARGS="--log-dir logs --must-include ${{ inputs.name }}"
if [ -n "${{ inputs.client }}" ]; then
ARGS="$ARGS --client ${{ inputs.client }}"
fi
if [ -n "${{ inputs.server }}" ]; then
ARGS="$ARGS --server ${{ inputs.server }}"
fi
if [ -n "${{ inputs.test }}" ]; then
ARGS="$ARGS --test ${{ inputs.test }}"
fi
python run.py $ARGS 2>&1 | tee summary
shell: bash

- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit aa3a746

Please sign in to comment.