Skip to content

Commit bac694c

Browse files
author
Guillaume Valadon
committed
Launch Unit Tests on OpenBSD
1 parent 0fef06a commit bac694c

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

.github/workflows/bsd.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Scapy Unit Tests on *BSD
22

33
on:
44
pull_request:
5-
types: [ labeled ]
5+
#types: [ labeled ]
6+
branches: [ master ]
67

78
jobs:
89
freebsd:
9-
if: ${{ github.event.label.name == 'ci/bsd' || github.event.label.name == 'ci/freebsd' }}
10+
#if: ${{ github.event.label.name == 'ci/bsd' || github.event.label.name == 'ci/freebsd' }}
11+
if: contains(github.event.pull_request.labels.*.name, 'ci/bsd')
1012
runs-on: macos-12
1113
name: FreeBSD
1214
steps:
@@ -16,13 +18,34 @@ jobs:
1618
uses: vmactions/freebsd-vm@v0
1719
with:
1820
release: 13.1
19-
with:
2021
copyback: false
2122
prepare: |
2223
pkg install --yes git python2 python3 py39-pip py27-sqlite3 py39-sqlite3 rust sudo
2324
2425
run: |
2526
env
26-
freebsd-version
2727
pip install tox
28-
tox -e 'py27-bsd_non_root,py27-bsd_root,py39-bsd_non_root,py39-bsd_root' -- -qq
28+
tox -e 'py27-bsd_non_root,py27-bsd_root,py39-bsd_non_root,py39-bsd_root' -- -qq
29+
30+
openbsd:
31+
#if: ${{ github.event.label.name == 'ci/bsd' || github.event.label.name == 'ci/openbsd' }}
32+
if: contains(github.event.pull_request.labels.*.name, 'ci/bsd')
33+
runs-on: macos-12
34+
name: OpenBSD
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Run tox
38+
id: tox
39+
uses: vmactions/openbsd-vm@v0
40+
with:
41+
release: 7.1
42+
copyback: false
43+
prepare: |
44+
pkg_add git python-2.7.18p7 python-3.9.12 py3-pip-22.0.4 rust-1.59.0 py3-cryptography-36.0.1 sudo-1.9.10
45+
46+
run: |
47+
env
48+
ls
49+
pip3 install tox
50+
#tox -e 'py27-bsd_non_root,py27-bsd_root,py39-bsd_non_root,py39-bsd_root' -- -qq
51+
tox -e 'py39-bsd_non_root,py39-bsd_root' -- -qq

test/configs/bsd.utsc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"test/windows.uts",
1616
"test/contrib/automotive/ecu_am.uts",
1717
"test/contrib/automotive/gm/gmlanutils.uts",
18-
"test/contrib/isotpscan.uts",
19-
"test/tools/isotpscannner.uts"
18+
"test/contrib/isotpscan.uts"
2019
],
2120
"onlyfailed": true,
2221
"preexec": {

0 commit comments

Comments
 (0)