Skip to content

Commit 1d6a1d8

Browse files
committed
ENH: Add parameter to set cxx test options
Allows remote module projects to pass ctest options such as excluding invalid tests by name with `-E <test_name>`. Caveats: - Several ctest options are already set by the workflow, such as the dashboard to receive results, the number of jobs to run, and verbosity. - Only available for cxx workflow. Closes #5.
1 parent 68f1414 commit 1d6a1d8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-test-cxx.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
cmake-options:
77
required: false
88
type: string
9+
ctest-options:
10+
required: false
11+
type: string
912
itk-cmake-options:
1013
required: false
1114
type: string
@@ -130,11 +133,11 @@ jobs:
130133
- name: Build and test
131134
if: matrix.os != 'windows-2019'
132135
run: |
133-
ctest --output-on-failure -j 2 -V -S dashboard.cmake
136+
ctest --output-on-failure -j 2 -V -S dashboard.cmake ${{ inputs.ctest-options }}
134137
135138
- name: Build and test
136139
if: matrix.os == 'windows-2019'
137140
run: |
138141
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
139-
ctest --output-on-failure -j 2 -V -S dashboard.cmake
142+
ctest --output-on-failure -j 2 -V -S dashboard.cmake ${{ inputs.ctest-options }}
140143
shell: cmd

0 commit comments

Comments
 (0)