exact match & wildcard test case issue resolution/updation #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2022-Present Intel Corporation | |
name: Build and Test | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup environment (Hugepages) | |
run: sudo sysctl -w vm.nr_hugepages=512 | |
- name: Setup dependencies | |
run: | | |
sudo apt-get install -y ccache libbpf0 | |
sudo pip3 install -r requirements.txt | |
yes n | ./env/rebuild_images.py focal64 | |
sudo mkdir -p /mnt/huge | |
sudo mount -t hugetlbfs nodev /mnt/huge | |
export CXX="ccache $VER_CXX" | |
ccache -s | |
- name: Build BESS | |
run: | | |
sudo ./container_build.py bess | |
sudo ./container_build.py kmod_buildtest | |
- name: Test BESS | |
run: | | |
(cd core && ./all_test --gtest_shuffle) | |
coverage run -m unittest discover -v | |
python3 bessctl/run_module_tests.py | |
sudo python3 bessctl/run_module_tests.py --test_dir bessctl/module_tests/cndp | |
ccache -s | |
bessctl/bessctl daemon stop | |
[[ ${COVERAGE:-0} == 0 ]] || { sleep 3; codecov --gcov-exec gcov-7; } |