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

28 lines
666 B
Plaintext

set -e
#
# run normal mode
#
echo ''
$NXF_RUN | tee stdout
[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > foo'` == 2 ]] || false
[[ `grep -c '1 - a' stdout` == 1 ]] || false
[[ `grep -c '1 - b' stdout` == 1 ]] || false
[[ `grep -c 'foo out: a' stdout` == 1 ]] || false
[[ `grep -c 'foo out: b' stdout` == 1 ]] || false
#
# RESUME mode
#
echo ''
$NXF_RUN -resume | tee stdout
[[ `grep 'INFO' .nextflow.log | grep -c 'Cached process > foo'` == 2 ]] || false
[[ `grep -c '1 - a' stdout` == 1 ]] || false
[[ `grep -c '1 - b' stdout` == 1 ]] || false
[[ `grep -c 'foo out: a' stdout` == 1 ]] || false
[[ `grep -c 'foo out: b' stdout` == 1 ]] || false