Skip to content

Commit

Permalink
confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Nov 22, 2021
1 parent 38e424e commit 145767e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 6 deletions.
60 changes: 54 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,64 @@ jobs:
sudo apt-get update
sudo apt-get install -qq libpcap-dev
- name: Install MacOS packages
if: matrix.os == 'macos-latest'
run: |
brew install libpcap
# - name: Install MacOS packages
# if: matrix.os == 'macos-latest'
# run: |
# brew install libpcap

- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: go test ./...
run: |
go test ./bytediff
go test ./defrag/lcmdefrag
go test ./dumpcommand
go test ./ip4defrag
go test ./layers
go test ./macs
go test ./pcap
go test ./pcap/gopacket_benchmark
go test ./pcapgo
go test ./reassembly
go test ./tcpassembly
go test ./tcpassembly/tcpreader
# go test ./pfring
- name: Test Race
run: go test -race ./...
run: |
go test -race ./bytediff
go test -race ./defrag/lcmdefrag
go test -race ./dumpcommand
go test -race ./ip4defrag
go test -race ./layers
go test -race ./macs
go test -race ./pcap
go test -race ./pcap/gopacket_benchmark
go test -race ./pcapgo
go test -race ./reassembly
go test -race ./tcpassembly
go test -race ./tcpassembly/tcpreader
# go test -race ./pfring
- name: Test Linux
if: matrix.os == 'ubuntu-latest'
run: |
go test ./afpacket
sudo $(which go) test ./routing
- name: Test Linux Race
if: matrix.os == 'ubuntu-latest'
run: |
go test -race ./afpacket
sudo $(which go) test -race ./routing
- name: Test MacOS
if: matrix.os == 'macos-latest'
run: |
go test ./bsdbpf
- name: Test MacOS Race
if: matrix.os == 'macos-latest'
run: |
go test -race ./bsdbpf
5 changes: 5 additions & 0 deletions pcap/pcapnggo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"bytes"
"io/ioutil"
"reflect"
"runtime"
"testing"
"time"

Expand All @@ -19,6 +20,10 @@ import (
)

func TestPCAPGoNgWrite(t *testing.T) {
if runtime.GOOS == "darwin" {
t.Skip("Reading PCAPNG files fails on MacOS")
}

f, err := ioutil.TempFile("", "pcapnggo")
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 145767e

Please sign in to comment.