Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3481,3 +3481,11 @@
output:
their_name: "Foo Bar"
tags: [ require, command_line_tool ]

- id: input_directory_with_executable_file
job: tests/input_dir_with_executable_file.yaml
tool: tests/input_dir_with_executable_file.cwl
doc: Executable files in input directories retain their execute permissions
output:
args: [ "1", "two", "3" ]
tags: [ required, command_line_tool ]
2 changes: 1 addition & 1 deletion tests/args.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import json
import os
Expand Down
2 changes: 1 addition & 1 deletion tests/cat1-testcli.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hints": [
{
"class": "DockerRequirement",
"dockerPull": "python:2-slim"
"dockerPull": "docker.io/python:3-slim"
}
],
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion tests/import_schema-def_packed.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"id": "#touch.cwl",
"hints": [
{
"dockerPull": "debian:stretch-slim",
"dockerPull": "docker.io/debian:stable-slim",
"class": "DockerRequirement"
}
]
Expand Down
2 changes: 1 addition & 1 deletion tests/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3

# Toy program to generate inverted index of word to line.
# Takes input text file on stdin and prints output index on stdout.
Expand Down
21 changes: 21 additions & 0 deletions tests/input_dir_with_executable_file.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool

hints:
DockerRequirement:
dockerPull: docker.io/python:3-slim

inputs:
dir_with_executable_file: Directory

baseCommand: []

arguments:
- $(inputs.dir_with_executable_file.path)/args.py
- "1"
- two
- "3"

outputs:
args: string[]
6 changes: 6 additions & 0 deletions tests/input_dir_with_executable_file.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dir_with_executable_file:
class: Directory
basename: foo
listing:
- class: File
path: args.py
2 changes: 1 addition & 1 deletion tests/revsort-packed.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"hints": [
{
"class": "DockerRequirement",
"dockerPull": "debian:stretch-slim"
"dockerPull": "docker.io/debian:stable-slim"
}
],
"inputs": [
Expand Down
6 changes: 2 additions & 4 deletions tests/search.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Toy program to search inverted index and print out each line the term
# appears.

from __future__ import print_function

import sys

mainfile = sys.argv[1]
Expand All @@ -23,5 +21,5 @@
for l in main:
linenum += 1
if linenum in n:
print(linenum, l.rstrip())
print(f"{linenum} {l.rstrip()}")
break
2 changes: 1 addition & 1 deletion tests/subdirsecondaries/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3

# Toy program to generate inverted index of word to line.
# Takes input text file on stdin and prints output index on stdout.
Expand Down
2 changes: 1 addition & 1 deletion tests/tmap-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hints": [
{
"class": "DockerRequirement",
"dockerPull": "python:2-slim"
"dockerPull": "docker.io/python:3-slim"
}
],
"inputs": [
Expand Down