Skip to content

Commit

Permalink
Test with wrccdc 2018 pcaps on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 9, 2024
1 parent 6db40ef commit a97df08
Show file tree
Hide file tree
Showing 2 changed files with 1,642 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test Zeek artifact against many pcaps

on:
push:
branches:
- pcap-test
workflow_dispatch:

jobs:
test:
strategy:
matrix:
platform: [windows-2019]
runs-on: ${{ matrix.platform }}

steps:
- name: Checkout build-zeek
uses: actions/checkout@v3

- name: Install wget on Windows
if: startsWith(matrix.platform, 'windows-')
run: choco install -y --no-progress wget
shell: cmd

- name: Run tests
run: |
wget https://github.com/brimdata/build-zeek/releases/download/v6.0.2-brim2/zeek-v6.0.2-brim2.windows-amd64.zip
unzip zeek-v6.0.2-brim2.windows-amd64.zip
for filename in $(cat wrccdc-2018-pcaps); do
wget https://archive.wrccdc.org/pcaps/2018/$filename
gzip -d $filename
cat ${filename/.gz/} | zeek/zeekrunner -
echo $?
ls -l *.log
rm *.log ${filename/.gz/}
done
Loading

0 comments on commit a97df08

Please sign in to comment.