-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first impl to handle CWL Directory type (relates to #466)
- Loading branch information
1 parent
dde8f87
commit 25f47e3
Showing
9 changed files
with
241 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/functional/application-packages/DirectoryProcess/deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
processDescription: | ||
id: DirectoryProcess | ||
title: List contents of an input directory to the output text file. | ||
version: "0.0.1" | ||
inputs: | ||
- id: input_dir | ||
formats: | ||
- mimeType: application/directory | ||
default: true | ||
minOccurs: 1 | ||
maxOccurs: 1 | ||
outputs: | ||
- id: output_file | ||
formats: | ||
- mimeType: text/plain | ||
default: true | ||
minOccurs: 1 | ||
maxOccurs: 1 | ||
visibility: public | ||
executionUnit: | ||
- test: DirectoryProcess.cwl | ||
immediateDeployment: true | ||
deploymentProfileName: "http://www.opengis.net/profiles/eoc/dockerizedApplication" |
27 changes: 27 additions & 0 deletions
27
tests/functional/application-packages/DirectoryProcess/package.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
baseCommand: | ||
- bash | ||
- script.sh | ||
requirements: | ||
DockerRequirement: | ||
dockerPull: debian:stretch-slim | ||
InitialWorkDirRequirement: | ||
listing: | ||
- entryname: script.sh | ||
entry: | | ||
set -x | ||
echo "Input: $2" | ||
echo "Output: $1" | ||
find "$1" ! -type d -exec ls -lht {} + > output.txt | ||
cat output.txt | ||
inputs: | ||
input_dir: | ||
type: Directory | ||
inputBinding: | ||
position: 1 | ||
outputs: | ||
output_file: | ||
type: File | ||
outputBinding: | ||
glob: "output.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.