Skip to content

Commit

Permalink
add func tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vankoven committed Aug 30, 2024
1 parent 7dc1cdb commit d0d22c7
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,51 @@ jobs:
- name: upload package artifacts
uses: actions/upload-artifact@v4
with:
name: "package_${{ inputs.target }}"
name: hyperscan-lib
path: libhyperscan*deb
if-no-files-found: error

- name: upload func test artifacts
uses: actions/upload-artifact@v4
with:
name: "func_test_${{ inputs.target }}"
name: func_tester
path: obj-x86_64-linux-gnu/bin/unit-xdpscan
if-no-files-found: error

functional_test:
runs-on: ubuntu-22.04
needs: [build_library, build_dkms]
steps:

- name: install dependencies
run: |
sudo apt update
sudo apt install dkms
- uses: actions/download-artifact@v4
with:
name: dkms_package
- uses: actions/download-artifact@v4
with:
name: func_tester
- uses: actions/download-artifact@v4
with:
name: hyperscan-lib

- name: install hyperscan library
run: |
sudo apt install -y ./libhyperscan*deb
- name: build module with dkms
run: |
sudo apt-get install -y ./rex-dkms*_all.deb \
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false )
- name: load module
run: |
sudo modprobe xdp_rex
- name: run tests
run: |
chmod +x unit-xdpscan
sudo ./unit-xdpscan

0 comments on commit d0d22c7

Please sign in to comment.