From c0b674d8e7f02bf8a73b7e58445c02529859c36e Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Thu, 14 Dec 2023 14:59:38 +0100 Subject: [PATCH] ci: add fragment test --- .github/workflows/build-check.yaml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-check.yaml b/.github/workflows/build-check.yaml index b5b96943c..0ccb69a32 100644 --- a/.github/workflows/build-check.yaml +++ b/.github/workflows/build-check.yaml @@ -86,7 +86,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Build project + - name: Build project and run test run: | sudo apt install -y ninja-build CMAKE_GENERATOR=Ninja make @@ -94,4 +94,26 @@ jobs: timeout-minutes: 5 env: Z_FEATURE_RAWETH_TRANSPORT: ${{ matrix.feature_reth }} - \ No newline at end of file + + fragment_test: + name: Test multicast and unicast fragmentation + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run docker image + run: docker run --name zenoh_router --init --net host -d eclipse/zenoh:master + + - name: Build project and run test + run: | + sudo apt install -y ninja-build + CMAKE_GENERATOR=Ninja make + python3 ./build/tests/fragment.py + timeout-minutes: 5 + + - name: Stop docker image + if: always() + run: | + docker stop zenoh_router + docker rm zenoh_router \ No newline at end of file