Skip to content

Commit

Permalink
common: integrate all PMem workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <jan.michalski@intel.com>
  • Loading branch information
janekmi committed Aug 23, 2023
1 parent 6e4f445 commit 3143025
Show file tree
Hide file tree
Showing 10 changed files with 232 additions and 228 deletions.
33 changes: 33 additions & 0 deletions .github/actions/pmem_test_prepare/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PMEM test prepare
description: PMDK testing procedure for self-hosted runners equipped with PMEM
inputs:
ndctl_enable:
description: Build with RAS support
required: false
default: y
fault_injection:
description: Build with the fault injection capability
required: false
default: '0'
runs:
using: composite
steps:
- run: echo 'WORKDIR=utils/gha-runners' >> "$GITHUB_ENV"
shell: bash
- run: |
echo '::group::Get system information'
$WORKDIR/get-system-info.sh
echo '::endgroup::'
shell: bash
- env:
FAULT_INJECTION: ${{ inputs.fault_injection }}
NDCTL_ENABLE: ${{ inputs.ndctl_enable }}
run: |
echo '::group::Build'
$WORKDIR/build-pmdk.sh
echo '::endgroup::'
shell: bash

- run: $WORKDIR/../create-testconfig.sh
shell: bash
56 changes: 0 additions & 56 deletions .github/actions/pmem_test_procedure/action.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/actions/pmem_test_run/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: PMEM test procedure
description: PMDK testing procedure for self-hosted runners equipped with PMEM
inputs:
test_script:
description: |
'sh' for RUNTESTS.sh, 'py' for RUNTESTS.py. The default is 'both'.
required: false
default: 'both'
build:
description: Build type to be tested.
required: true
test_label:
description: Limit testing to tests that have the given label assigned.
required: false
default: ''
force_enable:
description: Force the use of a specific Valgrind tool.
required: false
default: ''
runs:
using: composite
steps:
- run: echo 'TEST_TYPE=all' >> "$GITHUB_ENV"
shell: bash
- if: inputs.test_script != 'py' # run for 'sh' and 'both'
working-directory: src/test
env:
TEST_BUILD: ${{ inputs.build }}
TEST_LABEL: ${{ inputs.test_label }}
CHECK_TYPE: ${{ inputs.force_enable }}
run: |
echo '::group::Tests Bash'
./RUNTESTS.sh
echo '::endgroup::'
shell: bash

- if: inputs.test_script != 'sh' # run for 'py' and 'both'
working-directory: src/test
run: |
echo '::group::Tests Python'
cmd="./RUNTESTS.py -b ${{ inputs.build }} -t $TEST_TYPE";
[ "${{ inputs.test_label }}" != '' ] &&
cmd="$cmd --test-label ${{ inputs.test_label }}";
[ "${{ inputs.force_enable }}" != '' ] &&
cmd="$cmd --force-enable ${{ inputs.force_enable }}";
bash -c "$cmd"
echo '::endgroup::'
shell: bash
73 changes: 0 additions & 73 deletions .github/workflows/pmem_check.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/pmem_long.yml

This file was deleted.

Loading

0 comments on commit 3143025

Please sign in to comment.