Skip to content
Snippets Groups Projects
Commit 6f4406dc authored by Alice.Faure's avatar Alice.Faure
Browse files

cancel previous commit

parent de627cfd
No related branches found
No related tags found
1 merge request!113Add unit and system tests for CWL launcher
cwlVersion: v1.2
class: CommandLineTool
label: setup cta prod software
baseCommand: cta-prod-setup-software
inputs:
name_package:
type: string
inputBinding:
prefix: -p
position: 1
version_number:
type: string
inputBinding:
prefix: -v
position: 2
job_type:
type: string
default: simulations
inputBinding:
prefix: -a
position: 3
compiler:
type: string
inputBinding:
prefix: -g
position: 4
outputs:
dirac:
type:
type: array
items: File
outputBinding:
glob: "dirac*"
setup_path:
type: File
outputBinding:
glob: "setup_script_path.txt"
name_package: corsika_simtelarray
version_number: "2022-08-03"
job_type: simulations
compiler: gcc83_matchcpu
......@@ -5,8 +5,8 @@ import CTADIRAC.ProductionSystem.scripts.cta_prod_submit_from_cwl as launcher_cw
class TestWorkflowStep(unittest.TestCase):
def test_get_command_line(self):
wf = launcher_cwl.WorkflowStep()
input_cwl = "./setup-software.cwl"
input_yaml = "./setup-software.yml"
input_cwl = "../CWL/setup-software.cwl"
input_yaml = "../CWL/setup-software.yml"
wf.get_command_line(input_cwl, input_yaml)
actual = wf.command_line
expected = "cta-prod-setup-software -p corsika_simtelarray -v 2022-08-03 -a simulations -g gcc83_matchcpu"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment