Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 54 additions & 7 deletions vendor/.appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,75 @@
image:
- Visual Studio 2019
- Ubuntu
- Ubuntu1604
- Ubuntu2004
- macos-monterey
- Visual Studio 2022

environment:
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
matrix:
- BUILD: MSVCDYNAMIC64
- BUILD: MSVCSTATIC64
- BUILD: INSTALLER
- BUILD: MinGW32
- BUILD: MSYS2
- BUILD: MinGW64
- BUILD: Cygwin32
- BUILD: Cygwin64

matrix:
exclude:
- image: Ubuntu
BUILD: MSVCSTATIC64
- image: Ubuntu
BUILD: INSTALLER
- image: Ubuntu
BUILD: MinGW32
- image: Ubuntu
BUILD: MSYS2
- image: Ubuntu
BUILD: MinGW64
- image: Ubuntu1604
BUILD: MSVCSTATIC64
- image: Ubuntu1604
BUILD: INSTALLER
- image: Ubuntu1604
BUILD: MinGW32
- image: Ubuntu1604
BUILD: MSYS2
- image: Ubuntu1604
BUILD: MinGW64
- image: Ubuntu2004
BUILD: MSVCSTATIC64
- image: Ubuntu2004
BUILD: INSTALLER
- image: Ubuntu2004
BUILD: MinGW32
- image: Ubuntu2004
BUILD: MSYS2
- image: Ubuntu2004
BUILD: MinGW64
- image: macos-monterey
BUILD: MSVCSTATIC64
- image: macos-monterey
BUILD: INSTALLER
- image: macos-monterey
BUILD: MinGW32
- image: macos-monterey
BUILD: MSYS2
- image: macos-monterey
BUILD: MinGW64

artifacts:
- path: installer

clone_depth: 5

install:
- 'call "ci\openssl.bat"'
- cmd: 'ci\openssl.bat'
- sh: 'sudo ci/install.sh'

build_script:
- 'call "ci\build.bat"'
- cmd: 'ci\build.bat'
- sh: 'ci/build.sh'

test_script:
- 'call "ci\test.bat"'
- cmd: 'ci\test.bat'
- sh: 'if [ $(uname) != Darwin ]; then ci/test.sh; fi'
9 changes: 4 additions & 5 deletions vendor/.cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ env:
CIRRUS_CLONE_DEPTH: 5

freebsd_instance:
image: freebsd-12-0-release-amd64
image: freebsd-11-2-release-amd64
image: freebsd-11-1-release-amd64
image: freebsd-10-4-release-amd64
image_family: freebsd-14-0-snap
image_family: freebsd-13-1
image_family: freebsd-13-0

task:
install_script: ci/before.sh
install_script: sudo ci/install.sh
script: ci/build.sh
7 changes: 7 additions & 0 deletions vendor/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* eol=lf
*.bat eol=crlf
/win32/dist/README* eol=crlf
*.gif -text
*.jpg -text
*.bin -text
*.bmp -text
29 changes: 29 additions & 0 deletions vendor/.github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See also https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions

name: Build and test

on: [push, pull_request]

jobs:
build_and_test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
mode: [regular, disable-ipv6, disable-set, mini, read-only, without-nl, wolfssl, Android]

env:
MODE: ${{ matrix.mode }}

steps:
- uses: actions/checkout@main

- name: install required packages
run: sudo bash -c "MODE=$MODE ci/install.sh"

- name: build
run: ci/build.sh

- name: test
run: ci/test.sh
77 changes: 77 additions & 0 deletions vendor/.github/workflows/codechecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CodeChecker

on: [workflow_dispatch]
#on:
# push:
# branches: [ master ]

jobs:
codechecker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main

- name: install required packages
run: sudo apt-get install libatm-dev libperl-dev libpopt-dev libsensors4-dev libssh2-1-dev libxml2-dev uuid-dev libkrb5-dev python3-setuptools

- name: install clang v12
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 12
sudo apt-get install clang clang-tidy

- name: install packages required by CodeChecker
run: |
sudo apt-get install doxygen gcc-multilib python-virtualenv

- name: install nodejs version 12.x
run: |
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install nodejs

- name: install CodeChecker v6.14
run: |
git clone https://github.com/Ericsson/CodeChecker.git /opt/codechecker
git -C /opt/codechecker/ checkout -b b6.14.0 v6.14.0
make -C /opt/codechecker venv
. /opt/codechecker/venv/bin/activate
make -C /opt/codechecker package

- name: CodeChecker version
run: |
source /opt/codechecker/venv/bin/activate
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH;
CodeChecker version

- name: configure
run: MODE=regular; ci/net-snmp-configure ${GITHUB_REF##*/}

- name: Codechecker log
run: |
source /opt/codechecker/venv/bin/activate
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH
CodeChecker log -o codechecker-log.json -b "make"

- name: Codechecker analyze
run: |
source /opt/codechecker/venv/bin/activate
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH
echo "-*/conftest.c" > codechecker.skipfile
echo "-*/conftest.cpp" >> codechecker.skipfile
echo "-*/tmp.*.c" >> codechecker.skipfile
CodeChecker analyze -j $(nproc) --clean --skip codechecker.skipfile -o ./results --report-hash context-free-v2 codechecker-log.json
#CodeChecker analyze -j $(nproc) --clean --skip codechecker.skipfile --ctu -e sensitive -o ./results --report-hash context-free-v2 codechecker-log.json

- name: CodeChecker parse
run: |
source /opt/codechecker/venv/bin/activate;
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH
CodeChecker parse -e html ./results -o ./reports_html

- name: Archive CodeChecker results
uses: actions/upload-artifact@v2
with:
name: CodeChecker reports
path: reports_html
6 changes: 6 additions & 0 deletions vendor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*.swp
*~
.libs/
__pycache__
agent/*.exe
agent/mibgroup/agent_module_dot_conf.h
agent/mibgroup/agent_module_includes.h
Expand Down Expand Up @@ -100,7 +101,9 @@ perl/blib/
perl/default_store/default_store.c
perl/NetSNMP.c
perl/OID/OID.c
perl/OID/snmp.conf
perl/SNMP/SNMP.c
perl/SNMP/snmp.conf
perl/SNMP/t/*.log
perl/SNMP/t/*.pid
perl/SNMP/t/*.stderr
Expand All @@ -110,6 +113,8 @@ perl/TrapReceiver/const-xs.inc
perl/TrapReceiver/TrapReceiver.c
pm_to_blib
python/build
python/netsnmp_python.egg-info/
python/netsnmp/client_intf.*.so
sedscript
snmplib/snmpsm_init.h
snmplib/snmpsm_shutdown.h
Expand All @@ -118,6 +123,7 @@ stamp-h
TAGS
testing/failed_tests
testing/testing/
testing/fuzzing/
win32/*/debug
win32/*/release
win32/bin
Expand Down
Loading