Skip to content

Commit a9ff029

Browse files
committed
ci: Install Wireshark for LUA testing
1 parent 21db853 commit a9ff029

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/tests-xv4.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
sudo apt-get update
7676
sudo apt-get install -y libusb-1.0-0-dev # required to build rkflashtool
7777
sudo apt-get install -y binutils-arm-none-eabi # required to test bin2elf
78+
sudo apt-get install -y wireshark # required to use LUA dissectors
7879
python -m pip install --upgrade pip
7980
pip install pyserial # required to test comm_* tools
8081
pip install lz4 # required to extract compressed files within the FW modules
@@ -98,6 +99,14 @@ jobs:
9899
make
99100
cd -
100101
102+
- name: Install dissectors for Wireshark
103+
run: |
104+
mkdir -p $HOME/.config/wireshark
105+
cp comm_dissector/wireshark/init.lua" "$HOME/.config/wireshark/init.lua"
106+
sed -i 's/dji_script_path = \".*\"/dji_script_path = \"${{ env.working-directory }}\/comm_dissector\/wireshark\/\"/' "$HOME/.config/wireshark/init.lua"
107+
touch "$HOME/.config/wireshark/user_dlts"
108+
echo '"User 3 (DLT=150)","dji_dumlv1","0","","0",""' | tee -a "$HOME/.config/wireshark/user_dlts"
109+
101110
- name: Lint with flake8
102111
run: |
103112
# stop the build if there are Python syntax errors or undefined names

0 commit comments

Comments
 (0)