16955: a number of fixes to make the federation migration tests pass
[arvados.git] / sdk / cwl / tests / federation / cases / rev-input-to-output.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 cwlVersion: v1.0
6 class: CommandLineTool
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9 requirements:
10   InlineJavascriptRequirement: {}
11   ShellCommandRequirement: {}
12 inputs:
13   inp:
14     type: File
15 outputs:
16   original:
17     type: File
18     outputBinding:
19       glob: $(inputs.inp.basename)
20   revhash:
21     type: stdout
22 stdout: rev-$(inputs.inp.basename)
23 arguments:
24   - shellQuote: false
25     valueFrom: |
26       ln -s $(inputs.inp.path) $(inputs.inp.basename) &&
27       rev $(inputs.inp.basename)