Files
ma/nextflow/tests-v1/checks/output-val.nf/.checks
2026-04-29 23:01:54 +02:00

31 lines
675 B
Plaintext

set -e
#
# run normal mode
#
echo ''
$NXF_RUN | tee stdout
[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > foo'` == 1 ]] || false
[[ `< stdout grep 'x: 100'` ]] || false
[[ `< stdout grep 'y: two hundred'` ]] || false
[[ `< stdout grep 'str: Hello'` ]] || false
[[ `< stdout grep 'exp: prot-100.out'` ]] || false
#
# RESUME mode
#
echo ''
$NXF_RUN -resume | tee stdout
[[ `grep 'INFO' .nextflow.log | grep -c 'Cached process > foo'` == 1 ]] || false
[[ `< stdout grep 'x: 100'` ]] || false
[[ `< stdout grep 'y: two hundred'` ]] || false
[[ `< stdout grep 'str: Hello'` ]] || false
[[ `< stdout grep 'exp: prot-100.out'` ]] || false