Skip to content

add unit tests for open62541 version 1.4.6, add link to docu to readme.md #11

add unit tests for open62541 version 1.4.6, add link to docu to readme.md

add unit tests for open62541 version 1.4.6, add link to docu to readme.md #11

name: "Coverage Test open62541 v.1.4.6"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run:
permissions:
contents: read
runs-on: ubuntu-24.04
steps:
- name: Install Dependencies
run: |
sudo apt-get -y update
sudo apt-get install -y git build-essential gcc pkg-config cmake python3 check
sudo apt install python3-pip -y
pip3 install coverage
git clone https://github.com/open62541/open62541
cd open62541
git fetch --all --tags
git checkout tags/v1.4.6 -b v1.4.6-branch
git submodule update --init --recursive
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON -DUA_NAMESPACE_ZERO=FULL -DUA_ENABLE_JSON_ENCODING=ON ..
sudo make install
cd ..
chmod +x ./*
cd /home/runner/work/swap-it-open62541-server-template
ls
pwd
- name: Fetch
uses: actions/checkout@v4
with:
path: main
- name: Install open62541-server-template
run: |
cd main
mkdir build && cd build
cmake ..
sudo make install
cd ..
ls
- name: Run Coverage Tests
run: |
ls
cd main
ls
cd tests/coverage_test
mkdir build && cd build
cmake ..
chmod +x ../../*
make
./bin/tests/tests