21846: applied select to context menu open
[arvados.git] / sdk / cwl / tests / 18994-basename / check.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 class: CommandLineTool
6 cwlVersion: v1.2
7 inputs:
8   p: File
9   checkname: string
10 outputs: []
11 arguments:
12   - sh
13   - "-c"
14   - |
15     name=`basename $(inputs.p.path)`
16     ls -l $(inputs.p.path)
17     if test $name = $(inputs.checkname) ; then
18       echo success
19     else
20       echo expected basename to be $(inputs.checkname) but was $name
21       exit 1
22     fi