File tree Expand file tree Collapse file tree 1 file changed +40
-2
lines changed Expand file tree Collapse file tree 1 file changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,51 @@ jobs:
100
100
- name : upload package artifacts
101
101
uses : actions/upload-artifact@v4
102
102
with :
103
- name : " package_${{ inputs.target }} "
103
+ name : hyperscan-lib
104
104
path : libhyperscan*deb
105
105
if-no-files-found : error
106
106
107
107
- name : upload func test artifacts
108
108
uses : actions/upload-artifact@v4
109
109
with :
110
- name : " func_test_${{ inputs.target }} "
110
+ name : func_tester
111
111
path : obj-x86_64-linux-gnu/bin/unit-xdpscan
112
112
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
You can’t perform that action at this time.
0 commit comments