Skip to content

Commit

Permalink
add test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
caroott committed Jul 19, 2024
1 parent cc86ed0 commit ddb838f
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/CWL/ARCtrl.CWL.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="TestUtil.fs" />
<Compile Include="Main.fs" />
</ItemGroup>
<ItemGroup>
Expand Down
89 changes: 89 additions & 0 deletions tests/CWL/TestUtil.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
module TestUtil

let outputs ="""outputs:
output:
type: File
outputBinding:
glob: ./arc/runs/fsResult1/result.csv
example:
type: Directory
outputBinding:
glob: ./arc/runs/fsResult1/example.csv
exampleArray1:
type: File[]
outputBinding:
glob: ./arc/runs/fsResult1/example.csv
exampleArray2:
type:
type: array
items: File
outputBinding:
glob: ./arc/runs/fsResult1/example.csv"""

let inputs ="""inputs:
arcDirectory:
type: Directory
firstArg:
type: File
inputBinding:
position: 1
prefix: --example
secondArg:
type: string
inputBinding:
position: 2
separate: false"""

let requirements ="""requirements:
- class: DockerRequirement
dockerImageId: "devcontainer"
dockerFile: {$include: "FSharpArcCapsule/Dockerfile"}
- class: InitialWorkDirRequirement
listing:
- entryname: arc
entry: $(inputs.arcDirectory)
writable: true
- class: EnvVarRequirement
envDef:
- envName: DOTNET_NOLOGO
envValue: "true"
- class: NetworkAccess
networkAccess: true"""

let cwl ="""cwlVersion: v1.2
class: CommandLineTool
hints:
- class: DockerRequirement
dockerPull: mcr.microsoft.com/dotnet/sdk:6.0
requirements:
- class: InitialWorkDirRequirement
listing:
- entryname: script.fsx
entry:
$include: script.fsx
- class: EnvVarRequirement
envDef:
- envName: DOTNET_NOLOGO
envValue: "true"
- class: NetworkAccess
networkAccess: true
baseCommand: [dotnet, fsi, script.fsx]
inputs:
firstArg:
type: File
inputBinding:
position: 1
secondArg:
type: string
inputBinding:
position: 2
outputs:
output:
type: Directory
outputBinding:
glob: $(runtime.outdir)/.nuget
output2:
type: File
outputBinding:
glob: $(runtime.outdir)/*.csv"""

0 comments on commit ddb838f

Please sign in to comment.