set -e
# enable amazon plugin
export NXF_PLUGINS_DEFAULT=nf-amazon

# this test needs to validate the ability to access S3 public data
# in anonymous manner, therefore make sure to clear any aws credentials
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SECRET_KEY
unset AWS_ACCESS_KEY

#
# run normal mode
#
$NXF_RUN | tee stdout

[[ `grep INFO .nextflow.log | grep -c 'Submitted process > foo'` == 1 ]] || false

