Skip to content

Commit

Permalink
[actions] in .github/workflows/testsuite, add tests with FPEs (enable…
Browse files Browse the repository at this point in the history
…d for push/manual, disabled for PRs)
  • Loading branch information
valassi committed Nov 8, 2023
1 parent b78d6bc commit adee3ba
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/testsuite_allprocesses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ jobs:
uses: ./.github/workflows/testsuite_oneprocess.yml
with:
process: ${{ matrix.process }}.${{ matrix.suffix }}
enableFPE: github.event_name != 'pull_request'

#----------------------------------------------------------------------------------------------------------------------------------
7 changes: 6 additions & 1 deletion .github/workflows/testsuite_oneprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ function tput_test() {
done
}

# Tput-test with FPEs enabled
function tput_test_fpe() {
CUDACPP_RUNTIME_ENABLEFPE=1 tput_test $*
}

#----------------------------------------------------------------------------------------------------------------------------------

# Usage
Expand All @@ -244,7 +249,7 @@ function usage() {
#----------------------------------------------------------------------------------------------------------------------------------

# Valid stages
stages="codegen before_build build after_build tput_test"
stages="codegen before_build build after_build tput_test tput_test_fpe"

# Check input arguments
for astage in $stages; do
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/testsuite_oneprocess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ on:
type: choice
# FIXME? Can the list of supported processes be specified only once in oneprocess.yml or allprocesses.yml?
options: [gg_tt.mad, gg_ttg.mad, gg_ttgg.mad, gg_ttggg.mad, ee_mumu.mad]
enableFPE:
description: 'Enable FPE tests?'
default: true
required: true
type: boolean

#----------------------------------------------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -134,6 +139,10 @@ jobs:
- name: tput_test
run: .github/workflows/testsuite_oneprocess.sh tput_test ${{ inputs.process }}

- name: tput_test_fpe
run: .github/workflows/testsuite_oneprocess.sh tput_test_fpe ${{ inputs.process }}
if: ${{ inputs.enableFPE }}

- name: GOODBYE
run: |
echo "GOODBYE ${{ inputs.process }}! $(date)"
Expand Down

0 comments on commit adee3ba

Please sign in to comment.