Skip to content

Commit

Permalink
common: create common test matric for bash and python tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Jun 26, 2023
1 parent 93f1eb3 commit 76e1670
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 55 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/pmem_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [[self-hosted, rhel],[self-hosted, opensuse]]
config: ['check TEST_BUILD=debug',
'check TEST_BUILD=nondebug',
'check TEST_BUILD=static_debug',
'check TEST_BUILD=static_nondebug',
'pycheck TEST_BUILD=debug',
'pycheck TEST_BUILD=nondebug',
'pycheck TEST_BUILD=static_debug',
'pycheck TEST_BUILD=static_nondebug']
config: ['debug', 'nondebug', 'static_debug', 'static_nondebug']
env:
WORKDIR: utils/gha-runners

Expand All @@ -38,5 +31,8 @@ jobs:
- name: Create testconfig files
run: ./$WORKDIR/create-testconfig.sh

- name: Run tests
run: make ${{ matrix.config }}
- name: Run tests check
run: make check TEST_BUILD=${{ matrix.config }}

- name: Run tests pycheck
run: make pycheck TEST_BUILD=${{ matrix.config }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Run all tests (in python test framework) with 'force-enabled' valgrind.
# Run all tests with 'force-enabled' valgrind.
#
# This workflow is run on 'self-hosted' runners.
name: PMEM Valgrind python
name: PMEM Valgrind

on:
workflow_dispatch:
Expand All @@ -10,13 +10,14 @@ on:

jobs:
linux:
name: PMEM_valgrind_py
name: PMEM_valgrind
if: github.repository == 'pmem/pmdk'
runs-on: ${{ matrix.os }}
timeout-minutes: 4320 # wait max 3 days
strategy:
fail-fast: false
matrix:
script: ['sh', 'py']
config: ['drd', 'pmemcheck', 'memcheck', 'helgrind']
build: ['debug', 'nondebug', 'static_debug', 'static_nondebug']
os: [[self-hosted, rhel],[self-hosted, opensuse]]
Expand All @@ -38,4 +39,4 @@ jobs:
run: ./$WORKDIR/create-testconfig.sh

- name: Run tests
run: cd src/test/ && ./RUNTESTS.py --force-enable ${{ matrix.config }} -b ${{ matrix.build }}
run: cd src/test/ && ./RUNTESTS.${{ matrix.script }} --force-enable ${{ matrix.config }} -b ${{ matrix.build }}
41 changes: 0 additions & 41 deletions .github/workflows/pmem_valgrind_sh.yml

This file was deleted.

0 comments on commit 76e1670

Please sign in to comment.