add nextflow d30e48d
This commit is contained in:
23
nextflow/tests-v1/checks/custom-lib.nf/.checks
Normal file
23
nextflow/tests-v1/checks/custom-lib.nf/.checks
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# check the ability to load custom script/classes in the
|
||||
# local `lib` directory
|
||||
#
|
||||
set -e
|
||||
|
||||
# copy the test script in this directory
|
||||
cp ${NXF_SCRIPT:-../../custom-lib.nf} test.nf
|
||||
|
||||
# crate a library class
|
||||
mkdir -p lib
|
||||
cat >lib/Foo.groovy <<EOL
|
||||
class Foo {
|
||||
|
||||
static String hello() { "Hello world!" }
|
||||
|
||||
}
|
||||
EOL
|
||||
|
||||
${NXF_CMD:-nextflow} run test.nf | tee stdout
|
||||
|
||||
[[ `< stdout grep -c 'Hello world!'` == 1 ]] || false
|
||||
|
||||
Reference in New Issue
Block a user