-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
*BSD fixes #3810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*BSD fixes #3810
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,21 @@ then | |
else | ||
UT_FLAGS+=" -K vcan_socket" | ||
fi | ||
elif [[ "$OSTYPE" = "darwin"* ]] || [ "$TRAVIS_OS_NAME" = "osx" ] | ||
elif [[ "$OSTYPE" = "darwin"* ]] || [ "$TRAVIS_OS_NAME" = "osx" ] || [[ "$OSTYPE" = "FreeBSD" ]] || [[ "$OSTYPE" = *"bsd"* ]] | ||
then | ||
OSTOX="bsd" | ||
# Travis CI in macOS 10.13+ can't load kexts. Need this for tuntaposx. | ||
UT_FLAGS+=" -K tun -K tap" | ||
if [[ "$OSTYPE" = "openbsd"* ]] | ||
then | ||
# Note: LibreSSL 3.6.* does not support X25519 according to | ||
# the cryptogaphy module source code | ||
UT_FLAGS+=" -K libressl" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that in UTscapy, tags are expected to indicate what the test works on rather that what it doesn't work on :/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be, these flags are used to tag There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your call. |
||
fi | ||
if [[ "$OSTYPE" = "netbsd" ]] | ||
then | ||
UT_FLAGS+=" -K not_netbsd" | ||
fi | ||
fi | ||
|
||
# pypy | ||
|
@@ -82,7 +92,7 @@ then | |
fi | ||
|
||
# Configure OpenSSL | ||
export OPENSSL_CONF=$(python `dirname $BASH_SOURCE`/openssl.py) | ||
export OPENSSL_CONF=$($PYTHON `dirname $BASH_SOURCE`/openssl.py) | ||
|
||
# Dump vars (the others were already dumped in install.sh) | ||
echo UT_FLAGS=$UT_FLAGS | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,15 @@ | |
# See https://scapy.net/ for more information | ||
# Copyright (C) Philippe Biondi <[email protected]> | ||
|
||
PACKAGES="git python2 python39 py39-virtualenv py39-pip py27-sqlite3 py39-sqlite3 bash rust sudo" | ||
|
||
pkg update | ||
pkg install --yes git python2 python3 py37-virtualenv py27-sqlite3 py37-sqlite3 bash rust | ||
pkg install --yes $PACKAGES | ||
bash | ||
git clone https://github.com/secdev/scapy | ||
cd scapy | ||
export PATH=/usr/local/bin/:$PATH | ||
virtualenv-3.7 -p python3.7 venv | ||
virtualenv-3.9 -p python3.9 venv | ||
source venv/bin/activate | ||
pip install tox | ||
chown -R vagrant:vagrant /home/vagrant/scapy |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,18 @@ | |
# See https://scapy.net/ for more information | ||
# Copyright (C) Philippe Biondi <[email protected]> | ||
|
||
RELEASE="9.0_2020Q4" | ||
RELEASE="9.0_2022Q2" | ||
PACKAGES="git python27 python39 py39-virtualenv py27-sqlite3 py39-sqlite3 py39-expat rust mozilla-rootcerts-openssl" | ||
|
||
sudo -s | ||
unset PROMPT_COMMAND | ||
export PATH="/sbin:/usr/pkg/sbin:/usr/pkg/bin:$PATH" | ||
export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/${RELEASE}/All/" | ||
pkg_delete curl | ||
pkg_add git python27 python38 py38-virtualenv py27-sqlite3 py38-sqlite3 py38-expat rust mozilla-rootcerts-openssl | ||
pkg_add -u $PACKAGES | ||
git clone https://github.com/secdev/scapy | ||
cd scapy | ||
virtualenv-3.8 venv | ||
virtualenv-3.9 venv | ||
. venv/bin/activate | ||
pip install tox | ||
chown -R vagrant:vagrant ../scapy/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,15 @@ | |
# See https://scapy.net/ for more information | ||
# Copyright (C) Philippe Biondi <[email protected]> | ||
|
||
sudo pkg_add git python-2.7.18p0 python3 py-virtualenv | ||
PACKAGES="git python3 py3-virtualenv py3-cryptography" | ||
|
||
sudo pkg_add $PACKAGES | ||
sudo mkdir -p /usr/local/test/ | ||
sudo chown -R vagrant:vagrant /usr/local/test/ | ||
cd /usr/local/test/ | ||
git clone https://github.com/secdev/scapy | ||
cd scapy | ||
virtualenv venv | ||
virtualenv --system-site-packages venv | ||
source venv/bin/activate | ||
pip install tox | ||
sudo chown -R vagrant:vagrant /usr/local/test/ |
Uh oh!
There was an error while loading. Please reload this page.