Skip to content

Commit

Permalink
Add almalinux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juadde committed May 2, 2024
1 parent ec16e9c commit 9c343a3
Showing 1 changed file with 93 additions and 3 deletions.
96 changes: 93 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,11 @@ jobs:
name: Wireshark-plugin-alpine
- name: Run TShark on ARINC429 traffic
run: >
docker run -v .:/test alpine sh -c "apk add tshark lua5.2-bitop &&
docker run -v .:/test alpine sh -c "
apk add tshark lua5.2-bitop &&
unzip /test/Wireshark_plugin.zip -d /usr &&
tshark -e A429.LABEL -e A429.WORD -e A429.SDI -e A429.SSM -e A429.DATA -e A429.PARITY -E header=y -T fields -r /test/pcapng_files/arinc429_broadcast.pcapng | tee /test/a429_broadcast.output"
tshark -e A429.LABEL -e A429.WORD -e A429.SDI -e A429.SSM -e A429.DATA -e A429.PARITY -E header=y -T fields -r /test/pcapng_files/arinc429_broadcast.pcapng | tee /test/a429_broadcast.output
"
- name: Run diff
run: diff a429_broadcast.output test/a429_broadcast.output

Expand Down Expand Up @@ -287,6 +289,94 @@ jobs:
- name: Run diff
run: diff discrete.output test/discrete.output

test_a429_centos_almalinux:
runs-on: ubuntu-latest
needs: package_centos_plugin
steps:
- name: Get test files
uses: actions/checkout@v4
with:
sparse-checkout: |
test
pcapng_files
sparse-checkout-cone-mode: false
- name: Download plugin
uses: actions/download-artifact@v4
with:
name: Wireshark-plugin-centos
- name: Run TShark on ARINC429 traffic
run: >
docker run -v .:/test almalinux sh -c "
yum -y groupinstall 'Development Tools' &&
yum config-manager --set-enabled crb &&
curl https://www.lua.org/ftp/lua-${env:LUA_VERSION}.tar.gz -o lua.tar.gz &&
tar -xvf lua.tar.gz &&
cd lua-* &&
yum install -y readline-devel &&
make "MYCFLAGS=-fPIC" "R=5.2.4" linux install &&
cd .. &&
curl https://www.wireshark.org/download/src/wireshark-${env:WIRESHARK_VERSION}.tar.xz -o wireshark.tar.xz &&
tar -xvf wireshark.tar.xz &&
cd wireshark-* &&
yum install -y cmake glib2-devel libgcrypt-devel c-ares-devel speexdsp-devel &&
cmake -DENABLE_LUA=ON -DBUILD_wireshark=OFF . &&
make install &&
cd .. &&
unzip /test/Wireshark_plugin.zip -d /usr/local &&
curl http://bitop.luajit.org/download/LuaBitOp-1.0.2.tar.gz -o bitop.tar.gz &&
tar -xvf bitop.tar.gz &&
cd LuaBitOp-* &&
make install &&
cd .. &&
tshark -e A429.LABEL -e A429.WORD -e A429.SDI -e A429.SSM -e A429.DATA -e A429.PARITY -E header=y -T fields -r /test/pcapng_files/arinc429_broadcast.pcapng | tee /test/a429_broadcast.output
"
- name: Run diff
run: diff a429_broadcast.output test/a429_broadcast.output

test_discrete_centos_almalinux:
runs-on: ubuntu-latest
needs: package_centos_plugin
steps:
- name: Get test files
uses: actions/checkout@v4
with:
sparse-checkout: |
test
pcapng_files
sparse-checkout-cone-mode: false
- name: Download plugin
uses: actions/download-artifact@v4
with:
name: Wireshark-plugin-centos
- name: Run TShark on ARINC429 traffic
run: >
docker run -v .:/test almalinux sh -c "
yum -y groupinstall 'Development Tools' &&
yum config-manager --set-enabled crb &&
curl https://www.lua.org/ftp/lua-${env:LUA_VERSION}.tar.gz -o lua.tar.gz &&
tar -xvf lua.tar.gz &&
cd lua-* &&
yum install -y readline-devel &&
make "MYCFLAGS=-fPIC" "R=5.2.4" linux install &&
cd .. &&
curl https://www.wireshark.org/download/src/wireshark-${env:WIRESHARK_VERSION}.tar.xz -o wireshark.tar.xz &&
tar -xvf wireshark.tar.xz &&
cd wireshark-* &&
yum install -y cmake glib2-devel libgcrypt-devel c-ares-devel speexdsp-devel &&
cmake -DENABLE_LUA=ON -DBUILD_wireshark=OFF . &&
make install &&
cd .. &&
unzip /test/Wireshark_plugin.zip -d /usr/local &&
curl http://bitop.luajit.org/download/LuaBitOp-1.0.2.tar.gz -o bitop.tar.gz &&
tar -xvf bitop.tar.gz &&
cd LuaBitOp-* &&
make install &&
cd .. &&
tshark -e DISCRETE.VALUE -E header=y -T fields -r /test/pcapng_files/discrete.pcapng | tee /test/discrete.output
"
- name: Run diff
run: diff discrete.output test/discrete.output

test_a429_windows:
runs-on: windows-latest
needs: package_windows_plugin
Expand Down Expand Up @@ -391,7 +481,7 @@ jobs:

release_centos_plugin:
runs-on: ubuntu-latest
needs: [package_centos_plugin]
needs: [test_a429_centos_almalinux, test_discrete_centos_almalinux]
permissions:
contents: write
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down

0 comments on commit 9c343a3

Please sign in to comment.