Skip to content
Snippets Groups Projects
Commit 86441858 authored by Matthijs van der Wild's avatar Matthijs van der Wild
Browse files

Merge branch 'test_suite' into 'master'

Prepare delay calibration for test data

See merge request !81
parents 881e7129 132f826d
No related branches found
No related tags found
1 merge request!81Prepare delay calibration for test data
Pipeline #108623 passed
......@@ -60,8 +60,8 @@ inputs:
prefix: aoflagger.memorymax=
separate: false
shellQuote: false
valueFrom: "$((self/1000 > 30) ? self/1000 : 30)"
doc: The amount of maximum amount of memory to use in GB.
valueFrom: "$(self/1000)"
doc: The maximum amount of memory to use in GB.
arguments:
- steps=[aoflagger]
......
......@@ -39,7 +39,8 @@ outputs:
- id: h5parm
type: File
outputBinding:
glob: merged_addCS_selfcalcycle009_linear*.h5
glob: [merged*.h5, merged_addCS*.h5]
outputEval: $(self[self.length - 1])
doc: |
The calibration solution files generated
by lofar_facet_selfcal in HDF5 format.
......
#!/bin/sh
TEST1=$(mktemp prefix_affix_test_XXX)
TEST2=$(mktemp prefix_test_XXX)
OUTDIR=$(mktemp -d)
CWLFILE=$(mktemp)
cat <<- EOF > ${CWLFILE}
cwlVersion: v1.2
class: CommandLineTool
baseCommand: echo
arguments: ["globbing test"]
inputs:
files:
type: File[]
outputs:
output:
type: File
outputBinding:
glob: ["*", "*_affix*"]
outputEval: |
\$(self[self.length - 1])
requirements:
InlineJavascriptRequirement: {}
InitialWorkDirRequirement:
listing:
- entry: \$(inputs.files)
writable: true
EOF
GREEN='\033[32m'
RED='\e[31m'
CLEAR='\033[0m'
cwltool --outdir $OUTDIR $CWLFILE --files $TEST1 --files $TEST2 > /dev/null 2>&1
printf "Glob\t\t"
if [ -f $OUTDIR/$(basename $TEST1) ]; then
printf "${GREEN}passed${CLEAR}\n"
else
printf "${RED}failed${CLEAR}\n"
fi
rm -rf $OUTDIR
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