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

test: run tests to plgd/hub with DTLS #338

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: run tests to plgd/hub with DTLS
  • Loading branch information
jkralik committed Nov 7, 2022
commit 7a1fbfe1d558b25e34cb3f59fe10d88eca021579
7 changes: 5 additions & 2 deletions .github/workflows/plgd-hub-test-with-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ on:
type: boolean
required: false
default: false

hub_args:
type: string
required: false
default: ""
env:
TEST_CLOUD_SERVER_IMAGE: ghcr.io/plgd-dev/hub/test-cloud-server:latest

Expand Down Expand Up @@ -58,7 +61,7 @@ jobs:
run: docker run --privileged -d --network=host -v `pwd`/data:/tmp -v `pwd`/data/coverage:/data/coverage --name ${{ inputs.name }} ${{ inputs.tag }} devsim-`hostname`

- name: Run plgd hub tests image
run: docker run --rm --network=host ${{ env.TEST_CLOUD_SERVER_IMAGE }}
run: docker run --rm --network=host ${{ inputs.hub_args }} ${{ env.TEST_CLOUD_SERVER_IMAGE }}

- name: Gather coverage data
if: ${{ inputs.coverage }}
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/plgd-hub-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,51 @@ jobs:
- name: cloud-server-discovery-resource-observable-rep-realloc-debug-tsan
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_TSAN_ENABLED=ON"

- name: dtls-cloud-server-debug
args: ""
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-debug-asan
args: "-DOC_ASAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-debug-tsan
args: "-DOC_TSAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"

- name: dtls-cloud-server-discovery-resource-observable-debug
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-discovery-resource-observable-debug-asan
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_ASAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-discovery-resource-observable-debug-tsan
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_TSAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"

- name: dtls-cloud-server-rep-realloc-debug
args: "-DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-rep-realloc-debug-asan
args: "-DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_ASAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-rep-realloc-debug-tsan
args: "-DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_TSAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"

- name: dtls-cloud-server-discovery-resource-observable-rep-realloc-debug
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-discovery-resource-observable-rep-realloc-debug-asan
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_ASAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"
- name: dtls-cloud-server-discovery-resource-observable-rep-realloc-debug-tsan
args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_TSAN_ENABLED=ON"
hub_args: "-e TEST_COAP_GATEWAY_UDP_ENABLED=true"

uses: ./.github/workflows/plgd-hub-test-with-cfg.yml
with:
name: ${{ matrix.name }}
file: docker/apps/Dockerfile.cloud-server-debug
tag: dbg
build_args: -DOC_DEBUG_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_OSCORE_ENABLED=OFF ${{ matrix.args }}
build_type: Debug
hub_args: ${{ matrix.hub_args }}