Skip to content

Commit 99eae75

Browse files
Add conformance test for static_checker
Workflow input set as file: type: - type: array item: File should be exactly the same as file: type: File[] static_checker mistakenly fails with source -> sink mismatch
1 parent 8b6ddb1 commit 99eae75

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,3 +981,11 @@
981981
size: 15
982982
tool: v1.0/imported-hint.cwl
983983
doc: Test hints with $import
984+
985+
- job: v1.0/count-lines6-job.json
986+
output:
987+
count_output: 34
988+
tool: v1.0/count-lines11-wf.cwl
989+
doc: |
990+
Test single step workflow with Scatter step and two data links connected to
991+
same input, flattened merge behavior. Workflow inputs are set as list

v1.0/v1.0/count-lines11-wf.cwl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env cwl-runner
2+
class: Workflow
3+
cwlVersion: v1.0
4+
5+
requirements:
6+
- class: MultipleInputFeatureRequirement
7+
8+
inputs:
9+
file1:
10+
- type: array
11+
items: File
12+
file2:
13+
- type: array
14+
items: File
15+
16+
outputs:
17+
count_output:
18+
type: int
19+
outputSource: step1/output
20+
21+
steps:
22+
step1:
23+
run: wc3-tool.cwl
24+
in:
25+
file1:
26+
source: [file1, file2]
27+
linkMerge: merge_flattened
28+
out: [output]

0 commit comments

Comments
 (0)