37 lines
1002 B
Plaintext
37 lines
1002 B
Plaintext
#
|
|
# run normal mode
|
|
#
|
|
$NXF_RUN | tee stdout
|
|
|
|
[[ `grep INFO .nextflow.log | grep -c 'Submitted process'` == 2 ]] || false
|
|
< stdout grep "Home: $HOME - Input: alpha zzz" || false
|
|
< stdout grep "Home: $HOME - Input: omega zzz" || false
|
|
|
|
|
|
#
|
|
# run resume mode
|
|
#
|
|
$NXF_RUN -resume | tee stdout
|
|
|
|
[[ `grep INFO .nextflow.log | grep -c 'Cached process'` == 2 ]] || false
|
|
< stdout grep "Home: $HOME - Input: alpha zzz" || false
|
|
< stdout grep "Home: $HOME - Input: omega zzz" || false
|
|
|
|
|
|
#
|
|
# run changing params does not hit cache
|
|
#
|
|
$NXF_RUN -resume --data xxx | tee stdout
|
|
|
|
[[ `grep INFO .nextflow.log | grep -c 'Submitted process'` == 2 ]] || false
|
|
< stdout grep "Home: $HOME - Input: alpha xxx" || false
|
|
< stdout grep "Home: $HOME - Input: omega xxx" || false
|
|
|
|
#
|
|
# now cache is ok
|
|
#
|
|
$NXF_RUN -resume --data xxx | tee stdout
|
|
|
|
[[ `grep INFO .nextflow.log | grep -c 'Cached process'` == 2 ]] || false
|
|
< stdout grep "Home: $HOME - Input: alpha xxx" || false
|
|
< stdout grep "Home: $HOME - Input: omega xxx" || false |