Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Jun 18, 2018
1 parent 8fe5f04 commit 1759398
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions optional-input/prots
2 changes: 1 addition & 1 deletion process-when-empty/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ all:
test:
nextflow run main.nf > stdout
[[ `< stdout grep -c 'Submitted process'` == 1 ]] || false
nextflow run main.nf --inputs ../data/prots/\* > stdout
nextflow run main.nf --inputs prots/\* > stdout
[[ `< stdout grep -c 'Submitted process'` == 0 ]] || false

clean:
Expand Down
1 change: 1 addition & 0 deletions process-when-empty/prots
4 changes: 3 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ for x in $(find . -maxdepth 1 -type d); do
(
cd $x
if [[ -f Makefile ]]; then
make
printf "\n\n== Testing > $(basename $x) ==\n\n"
make test
elif [[ -f main.nf ]]; then
printf "\n\n== Testing > $(basename $x) ==\n\n"
nextflow run main.nf
fi
)
Expand Down

0 comments on commit 1759398

Please sign in to comment.