Skip to content

Commit d0d22c7

Browse files
committed
add func tests
1 parent 7dc1cdb commit d0d22c7

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

.github/workflows/package.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,51 @@ jobs:
100100
- name: upload package artifacts
101101
uses: actions/upload-artifact@v4
102102
with:
103-
name: "package_${{ inputs.target }}"
103+
name: hyperscan-lib
104104
path: libhyperscan*deb
105105
if-no-files-found: error
106106

107107
- name: upload func test artifacts
108108
uses: actions/upload-artifact@v4
109109
with:
110-
name: "func_test_${{ inputs.target }}"
110+
name: func_tester
111111
path: obj-x86_64-linux-gnu/bin/unit-xdpscan
112112
if-no-files-found: error
113+
114+
functional_test:
115+
runs-on: ubuntu-22.04
116+
needs: [build_library, build_dkms]
117+
steps:
118+
119+
- name: install dependencies
120+
run: |
121+
sudo apt update
122+
sudo apt install dkms
123+
124+
- uses: actions/download-artifact@v4
125+
with:
126+
name: dkms_package
127+
- uses: actions/download-artifact@v4
128+
with:
129+
name: func_tester
130+
- uses: actions/download-artifact@v4
131+
with:
132+
name: hyperscan-lib
133+
134+
- name: install hyperscan library
135+
run: |
136+
sudo apt install -y ./libhyperscan*deb
137+
138+
- name: build module with dkms
139+
run: |
140+
sudo apt-get install -y ./rex-dkms*_all.deb \
141+
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false )
142+
143+
- name: load module
144+
run: |
145+
sudo modprobe xdp_rex
146+
147+
- name: run tests
148+
run: |
149+
chmod +x unit-xdpscan
150+
sudo ./unit-xdpscan

0 commit comments

Comments
 (0)