add nextflow d30e48d
This commit is contained in:
37
nextflow/tests/checks/shell-script.nf/.checks
Normal file
37
nextflow/tests/checks/shell-script.nf/.checks
Normal file
@@ -0,0 +1,37 @@
|
||||
#
|
||||
# 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
|
||||
Reference in New Issue
Block a user