From 9eafcc8df6a5e8057d427b3011844fdb3afaf2a0 Mon Sep 17 00:00:00 2001 From: Kareem Date: Wed, 24 May 2023 15:38:58 -0700 Subject: [PATCH] Add Github action test for hitch. --- .github/workflows/hitch.yml | 71 +++++++++++++++++++++++++++++++++++++ .github/workflows/main.yml | 2 ++ 2 files changed, 73 insertions(+) create mode 100644 .github/workflows/hitch.yml diff --git a/.github/workflows/hitch.yml b/.github/workflows/hitch.yml new file mode 100644 index 0000000000..269131db42 --- /dev/null +++ b/.github/workflows/hitch.yml @@ -0,0 +1,71 @@ +name: hitch Tests + +on: + workflow_call: + +jobs: + build_wolfssl: + name: Build wolfSSL + # Just to keep it the same as the testing target + runs-on: ubuntu-latest + steps: + - name: Build wolfSSL + uses: wolfSSL/actions-build-autotools-project@v1 + with: + path: wolfssl + configure: --enable-hitch + install: true + + - name: Upload built lib + uses: actions/upload-artifact@v3 + with: + name: wolf-install-hitch + path: build-dir + retention-days: 1 + + hitch_check: + strategy: + fail-fast: false + matrix: + # List of releases to test + ref: [ 1.7.3 ] + name: ${{ matrix.ref }} + runs-on: ubuntu-latest + needs: build_wolfssl + steps: + - name: Download lib + uses: actions/download-artifact@v3 + with: + name: wolf-install-hitch + path: build-dir + + - name: Checkout OSP + uses: actions/checkout@v3 + with: + # TODO: change to wolfssl repo once merged + repository: kareem-wolfssl/osp + ref: hitch + path: osp + + - name: Build hitch + uses: wolfSSL/actions-build-autotools-project@v1 + with: + repository: varnish/hitch + ref: ${{ matrix.ref }} + path: hitch + patch-file: $GITHUB_WORKSPACE/osp/hitch/hitch-${{ matrix.ref }}.patch + run: | + autoreconf -i + configure: --with-wolfssl --enable-silent-rules --enable-documentation --enable-warnings --with-lex --with-yacc + + - name: Confirm hitch built with wolfSSL + working-directory: ./hitch + run: ldd src/hitch | grep wolfssl + + - name: Run hitch tests, skipping 13, 15 and 39 + run: | + for test in ./test*.sh; do + if ! [[ "$test" = ./test13* ]] && ! [[ "$test" = ./test15* ]] && ! [[ "$test" = ./test39* ]]; then + $test + fi + done \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7944f9dcb..9ccd43b02d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,8 @@ jobs: uses: ./.github/workflows/openvpn.yml hostap: uses: ./.github/workflows/hostap.yml + hitch: + uses: ./.github/workflows/hitch.yml # TODO: Currently this test fails. Enable it once it becomes passing. # haproxy: # uses: ./.github/workflows/haproxy.yml