Files
ma/nextflow/tests/checks/escape-globs.nf/.checks
2026-04-29 23:01:54 +02:00

25 lines
689 B
Plaintext

set -e
mkdir \[work-dir\]
#
# run normal mode
#
$NXF_RUN -w \[work-dir\] | tee stdout
[[ `grep INFO .nextflow.log | grep -c 'Submitted process'` == 1 ]] || false
[[ `< stdout grep -c -F 'match: file[a-b].txt'` == 1 ]] || false
[[ `< stdout grep -c -F 'match: file-*.txt'` == 1 ]] || false
[[ `< stdout grep -c -F 'match: file-?.txt'` == 1 ]] || false
#
# run resume mode
#
$NXF_RUN -w \[work-dir\] -resume | tee stdout
[[ `grep INFO .nextflow.log | grep -c 'Cached process'` == 1 ]] || false
[[ `< stdout grep -c -F 'match: file[a-b].txt'` == 1 ]] || false
[[ `< stdout grep -c -F 'match: file-*.txt'` == 1 ]] || false
[[ `< stdout grep -c -F 'match: file-?.txt'` == 1 ]] || false