Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ on:
jobs:

pcapng-check:
name: PCAP-NG Check
name: PCAP Check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt update
- run: sudo apt -y install tshark
- run: ./pcapng-check.sh
- run: ./pcap-check.sh

ubuntu-22-04:
name: Ubuntu 22.04
Expand Down
15 changes: 15 additions & 0 deletions pcap-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

#set -x

BADPCAPCNT=$(find tests/ -type f|xargs -L1 file|grep "pcap capture file, microsecond ts, extensions"|wc -l)
if [ $BADPCAPCNT -ne 0 ]; then
echo "$BADPCAPCNT unsupported pcap files found:"
echo
find tests/ -type f|xargs -L1 file|grep "pcap capture file, microsecond ts, extensions"
echo
echo "pcap files with extensions are not supported by OpenBSD"
exit 1
fi

exit 0