Skip to content

Commit

Permalink
Test with amazonlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
juadde committed May 7, 2024
1 parent 1323d2c commit 143c86e
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,85 @@ jobs:
- name: Run diff
run: diff discrete.output test/discrete.output

# Template needs VARIANT_IMAGE to be defined
.test_a429_centos_template:
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 ${VARIANT_IMAGE} sh -c "
yum install -y xz cmake g++ glib2-devel libgcrypt-devel c-ares-devel flex patch readline-devel unzip &&
curl https://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz -o lua.tar.gz &&
tar -xvf lua.tar.gz &&
cd lua-* &&
make "MYCFLAGS=-fPIC" linux install &&
cd .. &&
curl https://www.wireshark.org/download/src/wireshark-${WIRESHARK_VERSION}.tar.xz -o wireshark.tar.xz &&
tar -xvf wireshark.tar.xz &&
cd wireshark-* &&
cmake ${WIRESHARK_CENTOS_BUILD_OPTS} -DENABLE_LUA=ON -DFETCH_lua=OFF -DBUILD_wireshark=OFF -DBUILD_tshark=ON . &&
make tshark install &&
cd .. &&
unzip /test/Wireshark_plugin.zip -d /usr/local &&
curl http://bitop.luajit.org/download/LuaBitOp-${LUABITOP_VERSION}.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

# Template needs VARIANT_IMAGE to be defined
.test_discrete_centos_template:
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: Compile and run TShark on ARINC429 traffic
run: >
docker run -v .:/test ${VARIANT_IMAGE} sh -c "
yum install -y xz cmake g++ glib2-devel libgcrypt-devel c-ares-devel flex patch readline-devel unzip &&
curl https://www.wireshark.org/download/src/wireshark-${WIRESHARK_VERSION}.tar.xz -o wireshark.tar.xz &&
tar -xvf wireshark.tar.xz &&
cd wireshark-* &&
cmake ${WIRESHARK_CENTOS_BUILD_OPTS} -DENABLE_LUA=ON -DFETCH_lua=ON -DBUILD_wireshark=OFF -DBUILD_tshark=ON . &&
make tshark install &&
cd .. &&
unzip /test/Wireshark_plugin.zip -d /usr/local &&
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_centos_amazonlinux:
env:
VARIANT_IMAGE: amazonlinux
extends: .test_a429_centos_template

test_a429_centos_stream9:
runs-on: ubuntu-latest
needs: package_centos_plugin
Expand Down

0 comments on commit 143c86e

Please sign in to comment.