Skip to content
Merged
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
  •  
  •  
  •  
76 changes: 76 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
image:
- 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

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:
- cmd: 'ci\openssl.bat'
- sh: 'sudo ci/install.sh'

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

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

freebsd_instance:
image_family: freebsd-14-0-snap
image_family: freebsd-13-1
image_family: freebsd-13-0

task:
install_script: sudo ci/install.sh
script: ci/build.sh
29 changes: 29 additions & 0 deletions .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-set, mini, read-only, wolfssl]

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 .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@v2

- 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
18 changes: 16 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*~
*.bak
*.bs
*.ft
Expand All @@ -13,7 +12,10 @@
*.out
*.pdb
*.rej
*.swp
*~
.libs/
__pycache__
agent/*.exe
agent/mibgroup/agent_module_dot_conf.h
agent/mibgroup/agent_module_includes.h
Expand All @@ -35,6 +37,9 @@ apps/snmpget
apps/snmpgetnext
apps/snmpnetstat/*.exe
apps/snmpnetstat/snmpnetstat
apps/snmppcap
apps/snmpping
apps/snmpps
apps/snmpset
apps/snmpstatus
apps/snmptable
Expand Down Expand Up @@ -71,18 +76,22 @@ Makefile
man/*.[1358]
man/default_store.3.h
man/manaliases
mibs/.index
mk/
module_tmp_header.h
net-snmp-5*
net-snmp-6*
net-snmp-config
net-snmp-config-x
net-snmp-create-v3-user
netsnmp-agent.pc
netsnmp.pc
NEWS.new*
perl/*.json
perl/*.yml
perl/*/*.def
perl/*/*.json
perl/*/*.yml
perl/*/*/*.json
perl/*/*/*.yml
perl/agent/agent.c
perl/agent/default_store/default_store.c
Expand All @@ -92,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 @@ -102,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 @@ -110,6 +123,7 @@ stamp-h
TAGS
testing/failed_tests
testing/testing/
testing/fuzzing/
win32/*/debug
win32/*/release
win32/bin
Expand Down
Loading