Skip to content

Commit ca8fd0d

Browse files
authored
Filter MSL test: Exclude Modelica.Clocked (#26)
1 parent 5e2763c commit ca8fd0d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/msl-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ on:
3131
required: false
3232
default: 'scalarize,moveBindings,inlineFunctions'
3333
type: string
34+
filter:
35+
description: 'Julia regex string to filter model names (empty string means no filter)'
36+
required: false
37+
default: '^(?!Modelica\.Clocked)'
38+
type: string
3439

3540
concurrency:
3641
group: pages-${{ inputs.library || 'Modelica' }}-${{ inputs.lib_version || '4.1.0' }}-${{ inputs.bm_version || 'main' }}
@@ -52,6 +57,7 @@ jobs:
5257
LIB_VERSION: ${{ inputs.lib_version || '4.1.0' }}
5358
BM_VERSION_INPUT: ${{ inputs.bm_version || 'main' }}
5459
BM_OPTIONS: ${{ inputs.bm_options || 'scalarize,moveBindings,inlineFunctions' }}
60+
FILTER: ${{ inputs.filter || '^(?!Modelica\.Clocked)' }}
5561

5662
steps:
5763
- name: Checkout source
@@ -117,9 +123,11 @@ jobs:
117123
run: |
118124
julia --project=. -e '
119125
using BaseModelicaLibraryTesting
126+
filter_str = get(ENV, "FILTER", "")
120127
main(
121128
library = ENV["LIB_NAME"],
122129
version = ENV["LIB_VERSION"],
130+
filter = isempty(filter_str) ? nothing : filter_str,
123131
results_root = "results/$(ENV["BM_VERSION"])/$(ENV["LIB_NAME"])/$(ENV["LIB_VERSION"])",
124132
ref_root = "MAP-LIB_ReferenceResults",
125133
)

0 commit comments

Comments
 (0)