From a1f4b1b96c21b2ef2c67246498155df7bfbcbfaf Mon Sep 17 00:00:00 2001 From: "Mike Rapoport (Microsoft)" Date: Sat, 9 May 2026 15:55:26 +0300 Subject: [PATCH] ghenvtest Signed-off-by: Mike Rapoport (Microsoft) --- .github/scripts/run-memblock-tests.sh | 20 ++++++++++++++ .github/workflows/mm-tests.yml | 39 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100755 .github/scripts/run-memblock-tests.sh create mode 100644 .github/workflows/mm-tests.yml diff --git a/.github/scripts/run-memblock-tests.sh b/.github/scripts/run-memblock-tests.sh new file mode 100755 index 0000000000000..1eaa948c2018b --- /dev/null +++ b/.github/scripts/run-memblock-tests.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -euo pipefail + +printenv +exit 0 + +source "$(dirname "$0")/common.sh" + +test_dir=$linux_dir/tools/testing/memblock + +echo "Building memblock tests..." +make -C $test_dir >$log 2>&1 || fail "build of memblock tests failed" + +echo "Running memblock tests..." +$test_dir/main -v >$log 2>&1 || fail "memblock tests failed" + +# memblock tests use assert() which will abort on failure +# If we reach here, all tests passed +echo "✓ memblock tests passed" +exit 0 diff --git a/.github/workflows/mm-tests.yml b/.github/workflows/mm-tests.yml new file mode 100644 index 0000000000000..a9ad53fb3c6c4 --- /dev/null +++ b/.github/workflows/mm-tests.yml @@ -0,0 +1,39 @@ +name: mm-ci + +on: + pull_request: + push: + branches: + - mm-new + - mm-unstable + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + host-tests: + strategy: + fail-fast: false + matrix: + include: + - runner: ubuntu-24.04 + arch: x86_64 + # - runner: ubuntu-24.04-arm + # arch: arm64 + runs-on: self-hosted + name: Host tests (${{ matrix.arch }}) + + steps: + - name: checkout repository + uses: actions/checkout@v6 + + - name: Install dependencies + run: | + sudo apt-get -q update + sudo apt-get -qy install build-essential liburcu-dev + + - name: Run memblock tests + run: bash .github/scripts/run-memblock-tests.sh +